mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Add top VLAN custom query
This commit is contained in:
parent
473055a5ef
commit
f8600d4e9d
2 changed files with 56 additions and 0 deletions
54
scripts/historical/tables/top_vlans.json
Normal file
54
scripts/historical/tables/top_vlans.json
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"name" : "Top VLAN",
|
||||
"i18n_name" : "top_vlan",
|
||||
"data_source" : "flows",
|
||||
"show_in_page" : "overview",
|
||||
"visualization_type" : "table",
|
||||
"hourly": true,
|
||||
"sql" : "SELECT VLAN_ID, SUM(SRC2DST_BYTES) AS total_src2dst_bytes, SUM(DST2SRC_BYTES) AS total_dst2src_bytes, SUM(TOTAL_BYTES) AS total_bytes $FROM$ $WHERE$ $GROUPBY$ $ORDERBY$ $LIMIT$",
|
||||
"select" : {
|
||||
"items" : [
|
||||
{
|
||||
"name" : "VLAN_ID",
|
||||
"func" : "",
|
||||
"value_type" : "vlan_id"
|
||||
},
|
||||
{
|
||||
"name" : "total_dst2src_bytes",
|
||||
"func" : "",
|
||||
"value_type" : "bytes"
|
||||
},
|
||||
{
|
||||
"name" : "total_src2dst_bytes",
|
||||
"func" : "",
|
||||
"value_type" : "bytes"
|
||||
},
|
||||
{
|
||||
"name" : "total_bytes",
|
||||
"func" : "",
|
||||
"value_type" : "bytes"
|
||||
}
|
||||
]
|
||||
},
|
||||
"filters" : {
|
||||
"items" : [
|
||||
{
|
||||
}
|
||||
]
|
||||
},
|
||||
"groupby" : {
|
||||
"items" : [
|
||||
{
|
||||
"name" : "VLAN_ID"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sortby" : {
|
||||
"items" : [
|
||||
{
|
||||
"name" : "total_bytes",
|
||||
"order" : "DESC"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue