Files
keenetic-grafana-monitoring/config.json
Vitaliy Skrypnyk 7b858a065b Add interface metric
2020-07-28 20:22:58 +03:00

132 lines
2.9 KiB
JSON

{
"endpoint" : "http://192.168.1.1:79/rci",
"interval_sec" : 30,
"influxdb" : {
"host" : "",
"port" : 80,
"username" : "",
"password" : "",
"db" : ""
},
"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",
"active": "$.active"
},
"values" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"txrate": "$.txrate",
"uptime": "$.uptime",
"signal": "$.rssi",
"speed": "$.speed"
}
},
{
"command": "interface",
"root" : "$.*",
"tags" : {
"id": "$.id",
"type": "$.type",
"description": "$.description",
"interface-name": "$.interface-name",
"state": "$.state",
"address": "$.address"
},
"values" : {
"mtu": "$.mtu",
"uptime": "$.uptime",
"tx-queue": "$.tx-queue"
}
},
{
"command": "ip nat",
"root" : "$.[*]",
"tags" : {
"src" : "$.src",
"dst" : "$.dst"
},
"values" : {
"bytes-in": "$.bytes",
"bytes-out": "$.bytes-out"
}
},
{
"command": "system",
"root" : "$",
"tags" : {
"hostname" : "$.hostname"
},
"values" : {
"cpuload": "$.cpuload",
"memtotal": "$.memtotal",
"memfree": "$.memfree",
"memcache": "$.memcache",
"swaptotal": "$.swaptotal",
"swapfree": "$.swapfree",
"uptime": "$.uptime",
"membuffers": "$.membuffers"
}
},
{
"command": "internet status",
"root" : "$",
"tags" : {},
"values" : {
"internet": "$.internet",
"gateway-accessible": "$.gateway-accessible",
"dns-accessible": "$.dns-accessible",
"host-accessible": "$.host-accessible",
"captive-accessible": "$.captive-accessible"
}
},
{
"command": "media",
"root" : "$.*.partition.[*]",
"tags" : {
"label" : "$.label",
"uuid" : "$.uuid",
"state" : "$.state"
},
"values" : {
"total": "$.total",
"free": "$.free"
}
},
{
"command": "interface stat",
"root" : "$",
"param" : {
"name" : "GigabitEthernet1"
},
"tags" : {},
"values" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"rxspeed": "$.rxspeed",
"txspeed": "$.txspeed"
}
}
]
}