Files
keenetic-grafana-monitoring/config/metrics.json
2021-10-13 17:24:52 +03:00

168 lines
3.6 KiB
JSON

{
"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" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"txrate": "$.txrate",
"uptime": "$.uptime",
"signal": "$.rssi",
"speed": "$.speed",
"active": "$.active"
}
},
{
"command": "interface",
"root" : "$.*",
"tags" : {
"id": "$.id",
"type": "$.type",
"description": "$.description",
"interface-name": "$.interface-name",
"address": "$.address"
},
"values" : {
"mtu": "$.mtu",
"uptime": "$.uptime",
"tx-queue": "$.tx-queue",
"state": "$.state"
}
},
{
"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"
},
"values" : {
"total": "$.total",
"free": "$.free",
"state" : "$.state"
}
},
{
"command": "interface stat",
"root" : "$",
"param" : {
"name" : "ISP"
},
"tags" : {},
"values" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"rxspeed": "$.rxspeed",
"txspeed": "$.txspeed"
}
},
{
"command": "interface stat",
"root" : "$",
"param" : {
"name" : "AccessPoint"
},
"tags" : {},
"values" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"rxspeed": "$.rxspeed",
"txspeed": "$.txspeed"
}
},
{
"command": "interface stat",
"root" : "$",
"param" : {
"name" : "AccessPoint_5G"
},
"tags" : {},
"values" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"rxspeed": "$.rxspeed",
"txspeed": "$.txspeed"
}
},
{
"command": "interface stat",
"root" : "$",
"param" : {
"name" : "GigabitEthernet0"
},
"tags" : {},
"values" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"rxspeed": "$.rxspeed",
"txspeed": "$.txspeed"
}
},
{
"command": "interface stat",
"root" : "$",
"param" : {
"name" : "PPTP0"
},
"tags" : {},
"values" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes",
"rxspeed": "$.rxspeed",
"txspeed": "$.txspeed"
}
}
]
}