mirror of
https://github.com/kemko/keenetic-grafana-monitoring.git
synced 2026-01-01 15:45:43 +03:00
Dockerize and type mapping
This commit is contained in:
committed by
Vitaliy Skrypnyk
parent
74109908c4
commit
2c4788e8a3
9
config/influx.json.sample
Normal file
9
config/influx.json.sample
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"influxdb": {
|
||||
"host": "<HOST>",
|
||||
"port": 80,
|
||||
"username": "admin",
|
||||
"password": "<PASS>",
|
||||
"db": "keenetic"
|
||||
}
|
||||
}
|
||||
139
config/metrics.json
Normal file
139
config/metrics.json
Normal file
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"endpoint" : "http://192.168.1.1:79/rci",
|
||||
"interval_sec" : 30,
|
||||
"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",
|
||||
"address": "$.address"
|
||||
},
|
||||
"values" : {
|
||||
"mtu": "$.mtu",
|
||||
"uptime": "$.uptime",
|
||||
"tx-queue": "$.tx-queue",
|
||||
"state": "$.state"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
},
|
||||
"values" : {
|
||||
"total": "$.total",
|
||||
"free": "$.free",
|
||||
"state" : "$.state"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "interface stat",
|
||||
"root" : "$",
|
||||
"param" : {
|
||||
"name" : "GigabitEthernet1"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user