Improve dashboard

This commit is contained in:
Michael Wyraz 2021-11-28 21:07:28 +01:00
parent 8112426135
commit c605424e45
1 changed files with 176 additions and 94 deletions

View File

@ -22,10 +22,106 @@
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"gnetId": null, "gnetId": null,
"graphTooltip": 0, "graphTooltip": 0,
"iteration": 1637412949229, "iteration": 1638130252704,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{
"datasource": null,
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto",
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 24,
"x": 0,
"y": 0
},
"id": 15,
"interval": null,
"links": [
{
"targetBlank": true,
"title": "Zur Karte",
"url": "../#!/de/map/$node_id"
}
],
"maxDataPoints": 1,
"options": {
"showHeader": true
},
"pluginVersion": "8.2.3",
"targets": [
{
"exemplar": true,
"expr": "max by (nodeid,hostname,firmware_base,firmware_release,model,owner,autoupdater) (node_time.up{nodeid=\"$node_id\"}[1y])",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Knoteninformationen",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value": false
},
"indexByName": {
"Time": 5,
"Value": 7,
"autoupdater": 6,
"firmware_base": 3,
"firmware_release": 4,
"hostname": 1,
"model": 2,
"nodeid": 0
},
"renameByName": {
"Value": "Uptime",
"autoupdater": "Auto-Updater",
"firmware_base": "Firmware",
"firmware_release": "Version",
"hostname": "Hostname",
"model": "Modell",
"nodeid": " Node-ID",
"owner": "Kontakt"
}
}
}
],
"transparent": true,
"type": "table"
},
{ {
"datasource": null, "datasource": null,
"fieldConfig": { "fieldConfig": {
@ -81,7 +177,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 0 "y": 3
}, },
"id": 5, "id": 5,
"options": { "options": {
@ -102,7 +198,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "max_over_time(irate(node_traffic.forward.bytes{nodeid=\"$node_id\"})[2m])", "expr": "max_over_time(irate(max by (nodeid) (node_traffic.forward.bytes{nodeid=\"$node_id\"})[2m]))",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "Traffic (forward)", "legendFormat": "Traffic (forward)",
@ -110,21 +206,21 @@
}, },
{ {
"exemplar": true, "exemplar": true,
"expr": "max_over_time(irate(node_traffic.rx.bytes{nodeid=\"$node_id\"})[2m])", "expr": "max_over_time(irate(max by (nodeid) (node_traffic.rx.bytes{nodeid=\"$node_id\"})[2m]))",
"interval": "", "interval": "",
"legendFormat": "Traffic (rx)", "legendFormat": "Traffic (rx)",
"refId": "A" "refId": "A"
}, },
{ {
"exemplar": true, "exemplar": true,
"expr": "max_over_time(irate(node_traffic.tx.bytes{nodeid=\"$node_id\"})[2m])", "expr": "max_over_time(irate(max by (nodeid) (node_traffic.tx.bytes{nodeid=\"$node_id\"})[2m]))",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "Traffic (tx)", "legendFormat": "Traffic (tx)",
"refId": "C" "refId": "C"
} }
], ],
"title": "Traffic - $node_id", "title": "Traffic",
"type": "timeseries" "type": "timeseries"
}, },
{ {
@ -183,7 +279,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 0 "y": 3
}, },
"id": 2, "id": 2,
"options": { "options": {
@ -204,7 +300,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "max_over_time(node_clients.total{nodeid=\"$node_id\"}[10m])", "expr": "max by (nodeid)(max_over_time(node_clients.total{nodeid=\"$node_id\"}[10m]))",
"interval": "", "interval": "",
"legendFormat": "clients", "legendFormat": "clients",
"refId": "A" "refId": "A"
@ -239,7 +335,7 @@
"h": 7, "h": 7,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 8 "y": 11
}, },
"id": 11, "id": 11,
"options": { "options": {
@ -264,50 +360,98 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "increase(node_traffic.forward.bytes{nodeid=\"$node_id\"}[24h])", "expr": "max by (nodeid) (increase(node_traffic.forward.bytes{nodeid=\"$node_id\"}[1y]))",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "forward 24h", "legendFormat": "forward 1y",
"refId": "A" "refId": "A"
}, },
{ {
"exemplar": true, "exemplar": true,
"expr": "increase(node_traffic.rx.bytes{nodeid=\"$node_id\"}[24h])", "expr": "max by (nodeid) (increase(node_traffic.rx.bytes{nodeid=\"$node_id\"}[1y]))",
"interval": "", "interval": "",
"legendFormat": "rx 24h", "legendFormat": "rx 1y",
"refId": "B" "refId": "B"
}, },
{ {
"exemplar": true, "exemplar": true,
"expr": "increase(node_traffic.tx.bytes{nodeid=\"$node_id\"}[24h])", "expr": "max by (nodeid) (increase(node_traffic.tx.bytes{nodeid=\"$node_id\"}[1y]))",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "tx 24h", "legendFormat": "tx 1y",
"refId": "C" "refId": "C"
}, },
{ {
"exemplar": true, "exemplar": true,
"expr": "increase(node_traffic.forward.bytes{nodeid=\"$node_id\"}[1h])", "expr": "max by (nodeid) (increase(node_traffic.forward.bytes{nodeid=\"$node_id\"}[30d]))",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "forward 1h", "legendFormat": "forward 30d",
"refId": "D" "refId": "D"
}, },
{ {
"exemplar": true, "exemplar": true,
"expr": "increase(node_traffic.rx.bytes{nodeid=\"$node_id\"}[1h])", "expr": "max by (nodeid) (increase(node_traffic.rx.bytes{nodeid=\"$node_id\"}[30d]))",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "rx 1h", "legendFormat": "rx 30d",
"refId": "E" "refId": "E"
}, },
{ {
"exemplar": true, "exemplar": true,
"expr": "increase(node_traffic.tx.bytes{nodeid=\"$node_id\"}[1h])", "expr": "max by (nodeid) (increase(node_traffic.tx.bytes{nodeid=\"$node_id\"}[30d]))",
"hide": false,
"interval": "",
"legendFormat": "tx 30d",
"refId": "F"
},
{
"exemplar": true,
"expr": "max by (nodeid) (increase(node_traffic.forward.bytes{nodeid=\"$node_id\"}[24h]))",
"hide": false,
"interval": "",
"legendFormat": "forward 24h",
"refId": "G"
},
{
"exemplar": true,
"expr": "max by (nodeid) (increase(node_traffic.rx.bytes{nodeid=\"$node_id\"}[24h]))",
"hide": false,
"interval": "",
"legendFormat": "rx 24h",
"refId": "H"
},
{
"exemplar": true,
"expr": "max by (nodeid) (increase(node_traffic.tx.bytes{nodeid=\"$node_id\"}[24h]))",
"hide": false,
"interval": "",
"legendFormat": "tx 24h",
"refId": "I"
},
{
"exemplar": true,
"expr": "max by (nodeid) (increase(node_traffic.forward.bytes{nodeid=\"$node_id\"}[1h]))",
"hide": false,
"interval": "",
"legendFormat": "forward 1h",
"refId": "J"
},
{
"exemplar": true,
"expr": "max by (nodeid) (increase(node_traffic.rx.bytes{nodeid=\"$node_id\"}[1h]))",
"hide": false,
"interval": "",
"legendFormat": "rx 1h",
"refId": "K"
},
{
"exemplar": true,
"expr": "max by (nodeid) (increase(node_traffic.tx.bytes{nodeid=\"$node_id\"}[1h]))",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "tx 1h", "legendFormat": "tx 1h",
"refId": "F" "refId": "L"
} }
], ],
"title": "Traffic", "title": "Traffic",
@ -372,10 +516,10 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 22, "h": 19,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 8 "y": 11
}, },
"id": 7, "id": 7,
"options": { "options": {
@ -396,7 +540,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "link_tq{source.id=\"$node_id\"}", "expr": "avg by (nodeid,target.id,target.hostname) (link_tq{source.id=\"$node_id\"})",
"interval": "", "interval": "",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "to {{target.id}} {{target.hostname}}", "legendFormat": "to {{target.id}} {{target.hostname}}",
@ -406,68 +550,6 @@
"title": "Links zu anderen Knoten", "title": "Links zu anderen Knoten",
"type": "timeseries" "type": "timeseries"
}, },
{
"datasource": null,
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "dark-green",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 12,
"x": 0,
"y": 15
},
"id": 13,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.2.3",
"targets": [
{
"exemplar": true,
"expr": "vm_app_uptime_seconds{}",
"format": "time_series",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Uptime",
"type": "stat"
},
{ {
"datasource": null, "datasource": null,
"fieldConfig": { "fieldConfig": {
@ -548,7 +630,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "node_load{nodeid=\"$node_id\"}", "expr": "max by (nodeid) (node_load{nodeid=\"$node_id\"})",
"interval": "", "interval": "",
"intervalFactor": 10, "intervalFactor": 10,
"legendFormat": "load", "legendFormat": "load",
@ -658,7 +740,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "node_memory.total{nodeid=\"$node_id\"}", "expr": "max by (nodeid) (node_memory.total{nodeid=\"$node_id\"})",
"interval": "", "interval": "",
"intervalFactor": 10, "intervalFactor": 10,
"legendFormat": "total", "legendFormat": "total",
@ -666,7 +748,7 @@
}, },
{ {
"exemplar": true, "exemplar": true,
"expr": "node_memory.total{nodeid=\"$node_id\"}-node_memory.available{nodeid=\"$node_id\"}", "expr": "max by (nodeid) (node_memory.total{nodeid=\"$node_id\"}-node_memory.available{nodeid=\"$node_id\"})",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "used", "legendFormat": "used",
@ -686,9 +768,9 @@
{ {
"allValue": null, "allValue": null,
"current": { "current": {
"selected": true, "selected": false,
"text": "60e32724578a - mw-cpe210-1", "text": "e8de27658fe9 - E07-Vary",
"value": "60e32724578a" "value": "e8de27658fe9"
}, },
"datasource": null, "datasource": null,
"definition": "query_result(label_join( max by (hostname,nodeid) (node_clients.total[1y]) , \"result\", \" - \", \"nodeid\", \"hostname\"))", "definition": "query_result(label_join( max by (hostname,nodeid) (node_clients.total[1y]) , \"result\", \" - \", \"nodeid\", \"hostname\"))",
@ -713,12 +795,12 @@
] ]
}, },
"time": { "time": {
"from": "now-24h", "from": "now-6M",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "Node (public)", "title": "Node (public)",
"uid": "KoKOqJc7k", "uid": "KoKOqJc7k",
"version": 15 "version": 26
} }