|
| 1 | + |
| 2 | +# Ranking |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | +stat_module.xml |
| 7 | + |
| 8 | +## notes |
| 9 | + |
| 10 | + |
| 11 | +```bash |
| 12 | +[ |
| 13 | + 'virtual_server_stat', // general vs stats |
| 14 | + 'virtual_server_cpu_stat', // vs cpu stats |
| 15 | + 'gtm_wideip_stat', // gtm wideip stats |
| 16 | + 'profile_clientssl_stat', |
| 17 | + 'plane_cpu_stat', |
| 18 | + 'rule_stat', |
| 19 | + 'asm_cpu_util_stats', |
| 20 | + 'asm_learning_suggestions_stats', |
| 21 | + 'asm_enforced_entities_stats', |
| 22 | +] |
| 23 | +``` |
| 24 | + |
| 25 | +## Ranking system |
| 26 | + |
| 27 | +Top N = 10 |
| 28 | +key = virtual server name |
| 29 | + |
| 30 | +```yaml |
| 31 | +virtual_server_stat: |
| 32 | + - clientside.pkts_in |
| 33 | + - clientside.bytes_in |
| 34 | + - clientside.pkts_out |
| 35 | + - clientside.bytes_out |
| 36 | + - clientside.max_conns |
| 37 | + - clientside.tot_conns |
| 38 | + - clientside.cur_conns |
| 39 | +``` |
| 40 | +
|
| 41 | +Step 1: Sort/Collect top 10 VS from each of the seven stats above |
| 42 | + - Each VS will be scored; 10 for #1, 9 for #2, and 1 for #10 (last) |
| 43 | + - Every item in each top list gets a score just for getting on the list |
| 44 | +Step 2: Collect Scores |
| 45 | + - Create new table adding up the scores to produce a rank |
| 46 | + - third column providing reasons for rank |
| 47 | + - [[clientside.pkts_in, 6], [clientside.bytes_in, 5], [clientside.max_conns, 1], [clientside.tot_conns, 2]] |
| 48 | +
|
| 49 | +### virtual_server_stat |
| 50 | +
|
| 51 | +```json |
| 52 | +{ |
| 53 | + columns: [ |
| 54 | + {id: 'name', name: 'Name'}, |
| 55 | + {id: 'clientside.pkts_in', name: 'Packets In'}, |
| 56 | + {id: 'clientside.bytes_in', name: 'Bytes In'}, |
| 57 | + {id: 'clientside.pkts_out', name: 'Packets Out'}, |
| 58 | + {id: 'clientside.bytes_out', name: 'Bytes Out'}, |
| 59 | + {id: 'clientside.max_conns', name: 'Max Connections'}, |
| 60 | + {id: 'clientside.tot_conns', name: 'Total Connections'}, |
| 61 | + {id: 'clientside.cur_conns', name: 'Current Connections'}, |
| 62 | + ], |
| 63 | + search: true, |
| 64 | + sort: true, |
| 65 | + data: Object.values(data.virtual_server_stat) |
| 66 | + } |
| 67 | +``` |
| 68 | + |
| 69 | + |
| 70 | +### virtual_server_cpu_stat |
| 71 | + |
| 72 | +```json |
| 73 | +{ |
| 74 | + columns: [ |
| 75 | + {id: 'name', name: 'Name'}, |
| 76 | + {id: 'avg_5sec', name: 'Average - 5 sec'}, |
| 77 | + {id: 'avg_1min', name: 'Average - 1 min'}, |
| 78 | + {id: 'avg_5min', name: 'Average - 5 min'} |
| 79 | + ], |
| 80 | + search: true, |
| 81 | + sort: true, |
| 82 | + data: Object.values(data.virtual_server_cpu_stat) |
| 83 | + } |
| 84 | +``` |
0 commit comments