mirror of
https://github.com/kemko/keenetic-grafana-monitoring.git
synced 2026-01-01 15:45:43 +03:00
Use ntce summary instead per hosts stat
Per hosts stat require InfuxDB 2+ due to increase function
This commit is contained in:
@@ -164,21 +164,22 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "ntce hosts",
|
||||
"root" : "$.host[*].application[*]",
|
||||
"command": "ntce summary",
|
||||
"root" : "$.application[*]",
|
||||
"param" : {
|
||||
"application" : "true",
|
||||
"attrib" : "sumbytes",
|
||||
"detail" : "1"
|
||||
},
|
||||
"tags" : {
|
||||
"group-long" : "$.group-long",
|
||||
"groupset-long-id" : "$.groupset-long-id",
|
||||
"long" : "$.long",
|
||||
"short": "$.short",
|
||||
|
||||
"name": "`parent`.`parent`.host.name",
|
||||
"ip": "`parent`.`parent`.host.ip",
|
||||
"hostname": "`parent`.`parent`.host.hostname"
|
||||
"group-long" : "$.group-long",
|
||||
"groupset-long-id" : "$.groupset-long-id",
|
||||
"groupset-short-id" : "$.groupset-short-id"
|
||||
},
|
||||
"values" : {
|
||||
"rxbytes": "$.rxbytes",
|
||||
"txbytes": "$.txbytes"
|
||||
"sumbytes": "$.sumbytes"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user