Files
keenetic-grafana-monitoring/config.json
Vitaliy Skrypnyk 4dc7c9be5e Enrich with fields
2020-07-27 23:50:38 +03:00

52 lines
1.1 KiB
JSON

{
"endpoint" : "http://192.168.1.1:79/rci",
"interval_sec" : 10,
"metrics" : [
{
"command": "processes",
"root" : "$.process.*",
"tags" : {
"name": "~",
"process_name" : "$.name",
"pid": "$.pid"
},
"values" : {
"cpu": "$.statistics.cpu.cur",
"memory": "$.vm-size"
}
},
{
"command": "ip hotspot",
"root" : "$.host[*]",
"tags" : {
"hostname" : "$.hostname",
"name" : "$.name",
"ssid": "$.ssid",
"mode": "$.mode",
"ip": "$.ip",
"mac": "$.mac"
},
"values" : {
"active": "$.active",
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"txrate": "$.txrate",
"uptime": "$.uptime",
"signal": "$.rssi",
"speed": "$.speed"
}
},
{
"command": "ip nat",
"root" : "$.[*]",
"tags" : {
"src" : "$.src",
"dst" : "$.dst"
},
"values" : {
"bytes-in": "$.bytes",
"bytes-out": "$.bytes-out"
}
}
]
}