From 2c3abfa403f6622fa9ca2348165bee5e1b888afd Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Sat, 6 Sep 2025 17:22:56 +0100 Subject: [PATCH] Add grafana system & traefik dashboards Signed-off-by: Nikolaos Karaolidis --- .../podman/grafana/dashboards/system.json | 3680 +++++++++++++++-- .../podman/grafana/dashboards/traefik.json | 872 ++++ .../console/podman/grafana/default.nix | 22 +- 3 files changed, 4258 insertions(+), 316 deletions(-) create mode 100644 hosts/jupiter/users/storm/configs/console/podman/grafana/dashboards/traefik.json diff --git a/hosts/jupiter/users/storm/configs/console/podman/grafana/dashboards/system.json b/hosts/jupiter/users/storm/configs/console/podman/grafana/dashboards/system.json index d509270..2b27379 100644 --- a/hosts/jupiter/users/storm/configs/console/podman/grafana/dashboards/system.json +++ b/hosts/jupiter/users/storm/configs/console/podman/grafana/dashboards/system.json @@ -49,7 +49,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 } ] }, @@ -79,7 +80,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "datasource": { @@ -115,7 +116,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -151,7 +153,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -183,7 +185,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -221,11 +224,11 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", - "expr": "node_load1{hostname=\"$hostname\"}", + "expr": "node_load1{hostname=\"$hostname\"} / $cpu_count", "legendFormat": "__auto", "range": true, "refId": "A" @@ -249,7 +252,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -287,11 +291,11 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", - "expr": "node_load5{hostname=\"$hostname\"}", + "expr": "node_load5{hostname=\"$hostname\"} / $cpu_count", "legendFormat": "__auto", "range": true, "refId": "A" @@ -315,7 +319,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -353,11 +358,11 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", - "expr": "node_load15{hostname=\"$hostname\"}", + "expr": "node_load15{hostname=\"$hostname\"} / $cpu_count", "legendFormat": "__auto", "range": true, "refId": "A" @@ -381,7 +386,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -417,7 +423,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -449,7 +455,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -498,7 +505,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -530,7 +537,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -566,7 +574,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -598,7 +606,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -634,7 +643,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -657,7 +666,7 @@ "overrides": [] }, "gridPos": { - "h": 12, + "h": 8, "w": 4, "x": 20, "y": 1 @@ -677,11 +686,12 @@ "firing": true, "noData": true, "normal": true, - "pending": true + "pending": true, + "recovering": true }, "viewMode": "list" }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "title": "Alerts", "type": "alertlist" }, @@ -700,7 +710,75 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 + } + ] + }, + "unit": "currencyGBP" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 5 + }, + "id": 46, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "(((avg_over_time(node_hwmon_power_watt{hostname=\"$hostname\", chip=\"0000:00:08_1_0000:05:00_0\"}[$__range]) + $extra_watts) * ($__range_s / 3600)) / 1000) * $energy_price", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Money Burned", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -718,8 +796,8 @@ }, "gridPos": { "h": 4, - "w": 3, - "x": 0, + "w": 2, + "x": 4, "y": 5 }, "id": 12, @@ -738,7 +816,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", @@ -766,7 +844,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -784,8 +863,8 @@ }, "gridPos": { "h": 4, - "w": 3, - "x": 3, + "w": 2, + "x": 6, "y": 5 }, "id": 13, @@ -804,7 +883,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", @@ -832,7 +911,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -850,8 +930,8 @@ }, "gridPos": { "h": 4, - "w": 3, - "x": 6, + "w": 2, + "x": 8, "y": 5 }, "id": 14, @@ -870,7 +950,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", @@ -898,7 +978,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -916,8 +997,8 @@ }, "gridPos": { "h": 4, - "w": 3, - "x": 9, + "w": 2, + "x": 10, "y": 5 }, "id": 15, @@ -936,7 +1017,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", @@ -964,7 +1045,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -982,7 +1064,7 @@ }, "gridPos": { "h": 4, - "w": 3, + "w": 2, "x": 12, "y": 5 }, @@ -1002,7 +1084,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", @@ -1030,7 +1112,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -1048,8 +1131,8 @@ }, "gridPos": { "h": 4, - "w": 3, - "x": 15, + "w": 2, + "x": 14, "y": 5 }, "id": 7, @@ -1068,7 +1151,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", @@ -1096,7 +1179,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 } ] }, @@ -1106,8 +1190,8 @@ }, "gridPos": { "h": 4, - "w": 2, - "x": 18, + "w": 4, + "x": 16, "y": 5 }, "id": 27, @@ -1126,12 +1210,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "editorMode": "code", "expr": "rate(node_network_receive_bytes_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", - "legendFormat": "__auto", + "legendFormat": "{{device}}", "range": true, "refId": "A" } @@ -1140,8 +1224,37 @@ "type": "stat" }, { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 75 + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "celsius" + }, "overrides": [] }, "gridPos": { @@ -1150,23 +1263,69 @@ "x": 0, "y": 9 }, - "id": 34, + "id": 40, "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false }, - "content": "TODO", - "mode": "markdown" + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "node_hwmon_temp_celsius{hostname=\"$hostname\", chip=\"pci0000:00_0000:00:18_3\", sensor=\"temp1\"}", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], "title": "CPU Temperature", - "type": "text" + "type": "gauge" }, { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 45 + }, + { + "color": "red", + "value": 60 + } + ] + }, + "unit": "celsius" + }, "overrides": [] }, "gridPos": { @@ -1175,23 +1334,69 @@ "x": 2, "y": 9 }, - "id": 20, + "id": 41, "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false }, - "content": "TODO", - "mode": "markdown" + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "avg(node_hwmon_temp_celsius{hostname=\"$hostname\", chip=\"thermal_thermal_zone0\"})", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], "title": "Ambient Temperature", - "type": "text" + "type": "gauge" }, { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 45 + }, + { + "color": "red", + "value": 60 + } + ] + }, + "unit": "celsius" + }, "overrides": [] }, "gridPos": { @@ -1200,69 +1405,36 @@ "x": 4, "y": 9 }, - "id": 21, + "id": 42, "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false }, - "content": "TODO", - "mode": "markdown" + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "11.6.0", - "title": "CPU Frequency", - "type": "text" - }, - { - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 6, - "y": 9 - }, - "id": 23, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "TODO", - "mode": "markdown" - }, - "pluginVersion": "11.6.0", - "title": "CPU Voltage", - "type": "text" - }, - { - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 8, - "y": 9 - }, - "id": 22, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "TODO", - "mode": "markdown" - }, - "pluginVersion": "11.6.0", - "title": "Fan Speed", - "type": "text" + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "avg(node_hwmon_temp_celsius{hostname=\"$hostname\", chip=\"nvme_nvme0\"})", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "SSD Temperature", + "type": "gauge" }, { "datasource": { @@ -1279,7 +1451,197 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 + } + ] + }, + "unit": "rothz" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 6, + "y": 9 + }, + "id": 45, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "avg(node_cpu_scaling_frequency_hertz{hostname=\"$hostname\"})", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "CPU Frequency", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "volt" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 8, + "y": 9 + }, + "id": 43, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "node_hwmon_in_volts{hostname=\"$hostname\", chip=\"0000:00:08_1_0000:05:00_0\", sensor=\"in0\"}", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "CPU Voltage", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "watt" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 10, + "y": 9 + }, + "id": 44, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "node_hwmon_power_watt{hostname=\"$hostname\", chip=\"0000:00:08_1_0000:05:00_0\"}", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "CPU Wattage", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 } ] } @@ -1289,7 +1651,7 @@ "gridPos": { "h": 4, "w": 2, - "x": 10, + "x": 12, "y": 9 }, "id": 29, @@ -1308,7 +1670,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -1340,7 +1702,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 } ] } @@ -1350,7 +1713,7 @@ "gridPos": { "h": 4, "w": 2, - "x": 12, + "x": 14, "y": 9 }, "id": 30, @@ -1369,7 +1732,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -1401,7 +1764,67 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 + } + ] + }, + "unit": "binBps" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 9 + }, + "id": 28, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(node_network_transmit_bytes_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "legendFormat": "{{device}}", + "range": true, + "refId": "A" + } + ], + "title": "TX Rate", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 } ] } @@ -1411,7 +1834,7 @@ "gridPos": { "h": 4, "w": 2, - "x": 14, + "x": 20, "y": 9 }, "id": 25, @@ -1430,7 +1853,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -1462,7 +1885,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "red", @@ -1476,7 +1900,7 @@ "gridPos": { "h": 4, "w": 2, - "x": 16, + "x": 22, "y": 9 }, "id": 26, @@ -1495,7 +1919,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -1512,64 +1936,6 @@ "title": "Failed Units", "type": "stat" }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 18, - "y": 9 - }, - "id": 28, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.0", - "targets": [ - { - "editorMode": "code", - "expr": "rate(node_network_transmit_bytes_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "TX Rate", - "type": "stat" - }, { "collapsed": false, "gridPos": { @@ -1633,11 +1999,8 @@ "mode": "absolute", "steps": [ { - "color": "green" - }, - { - "color": "red", - "value": 80 + "color": "green", + "value": 0 } ] }, @@ -1671,7 +2034,7 @@ }, "gridPos": { "h": 8, - "w": 6, + "w": 8, "x": 0, "y": 14 }, @@ -1689,7 +2052,7 @@ "sort": "desc" } }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, @@ -1729,54 +2092,121 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "percentunit" + }, "overrides": [] }, "gridPos": { "h": 8, - "w": 6, - "x": 6, + "w": 8, + "x": 8, "y": 14 }, - "id": 39, + "id": 50, "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "content": "TODO", - "mode": "markdown" + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } }, - "pluginVersion": "11.6.0", - "title": "CPU Frequency", - "type": "text" - }, - { - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 12, - "y": 14 - }, - "id": 18, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "node_load1{hostname=\"$hostname\"} / $cpu_count", + "legendFormat": "load1", + "range": true, + "refId": "A" }, - "content": "TODO", - "mode": "markdown" - }, - "pluginVersion": "11.6.0", - "title": "CPU Temperature", - "type": "text" + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "node_load5{hostname=\"$hostname\"} / $cpu_count", + "hide": false, + "instant": false, + "legendFormat": "load5", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "node_load15{hostname=\"$hostname\"} / $cpu_count", + "hide": false, + "instant": false, + "legendFormat": "load15", + "range": true, + "refId": "C" + } + ], + "title": "Load Averages", + "type": "timeseries" }, { "datasource": { @@ -1800,17 +2230,43 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 } ] } }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "codename" + }, + "properties": [ + { + "id": "custom.width", + "value": 250 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "state" + }, + "properties": [ + { + "id": "custom.width", + "value": 200 + } + ] + } + ] }, "gridPos": { "h": 8, - "w": 6, - "x": 18, + "w": 8, + "x": 16, "y": 14 }, "id": 33, @@ -1825,13 +2281,13 @@ "showHeader": true, "sortBy": [] }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "targets": [ { "disableTextWrap": false, "editorMode": "code", "exemplar": false, - "expr": "last_over_time(node_cpu_vulnerabilities_info{hostname=\"$hostname\"}[$__interval])", + "expr": "last_over_time(node_cpu_vulnerabilities_info{hostname=\"$hostname\"}[$__range])", "format": "table", "fullMetaSearch": false, "includeNullMetadata": true, @@ -1946,11 +2402,8 @@ "mode": "absolute", "steps": [ { - "color": "green" - }, - { - "color": "red", - "value": 80 + "color": "green", + "value": 0 } ] }, @@ -2003,7 +2456,7 @@ "sort": "desc" } }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "repeat": "cpu", "repeatDirection": "h", "targets": [ @@ -2013,7 +2466,7 @@ "expr": "rate(node_cpu_seconds_total{hostname=\"$hostname\", mode!=\"idle\", cpu=\"$cpu\"}[${__rate_interval}])\n", "fullMetaSearch": false, "includeNullMetadata": true, - "legendFormat": "__auto", + "legendFormat": "{{mode}}", "range": true, "refId": "A", "useBackend": false @@ -2045,53 +2498,61 @@ "type": "timeseries" }, { + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "total" + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "properties": [] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 31 - }, - "id": 37, - "maxPerRow": 8, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "rothz" }, - "content": "TODO", - "mode": "markdown" - }, - "pluginVersion": "11.6.0", - "repeat": "cpu", - "repeatDirection": "h", - "title": "CPU$cpu Frequency", - "type": "text" - }, - { - "fieldConfig": { - "defaults": {}, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "total" - }, - "properties": [] - } - ] + "overrides": [] }, "gridPos": { "h": 8, @@ -2099,22 +2560,2449 @@ "x": 0, "y": 39 }, - "id": 38, + "id": 37, "maxPerRow": 8, "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "content": "TODO", - "mode": "markdown" + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "11.6.0", + "pluginVersion": "12.1.1", "repeat": "cpu", "repeatDirection": "h", - "title": "CPU$cpu Temperature", - "type": "text" + "targets": [ + { + "editorMode": "code", + "expr": "node_cpu_scaling_frequency_hertz{hostname=\"$hostname\", cpu=\"$cpu\"}", + "legendFormat": "frequency", + "range": true, + "refId": "A" + } + ], + "title": "CPU$cpu Frequency", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 55 + }, + "id": 47, + "panels": [], + "title": "Memory", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [10, 10], + "fill": "dash" + } + }, + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 56 + }, + "id": 48, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes{hostname=\"$hostname\"}", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "total", + "range": true, + "refId": "A", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes{hostname=\"$hostname\"} \n- node_memory_MemFree_bytes{hostname=\"$hostname\"} \n- node_memory_Buffers_bytes{hostname=\"$hostname\"} \n- node_memory_Cached_bytes{hostname=\"$hostname\"}", + "hide": false, + "instant": false, + "legendFormat": "used", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Cached_bytes{hostname=\"$hostname\"}", + "hide": false, + "instant": false, + "legendFormat": "cached", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Buffers_bytes{hostname=\"$hostname\"} ", + "hide": false, + "instant": false, + "legendFormat": "buffers", + "range": true, + "refId": "D" + } + ], + "title": "Memory Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [10, 10], + "fill": "dash" + } + }, + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 56 + }, + "id": 49, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "node_memory_SwapTotal_bytes{hostname=\"$hostname\"}", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "total", + "range": true, + "refId": "A", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "node_memory_SwapTotal_bytes{hostname=\"$hostname\"} - node_memory_SwapFree_bytes{hostname=\"$hostname\"}", + "hide": false, + "instant": false, + "legendFormat": "used", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "node_memory_SwapCached_bytes{hostname=\"$hostname\"}", + "hide": false, + "instant": false, + "legendFormat": "cached", + "range": true, + "refId": "C" + } + ], + "title": "SWAP Usage", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 64 + }, + "id": 51, + "panels": [], + "title": "Network", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 65 + }, + "id": 56, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "increase(node_network_receive_bytes_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "{{device}} (rx)", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "RX Data", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 4, + "y": 65 + }, + "id": 52, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(node_network_receive_bytes_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "legendFormat": "{{device}} (rx)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(node_network_transmit_bytes_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "hide": false, + "instant": false, + "legendFormat": "{{device}} (tx)", + "range": true, + "refId": "B" + } + ], + "title": "Network Traffic", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 9, + "y": 65 + }, + "id": 53, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(node_network_receive_packets_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "legendFormat": "{{device}} (rx)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(node_network_transmit_packets_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "hide": false, + "instant": false, + "legendFormat": "{{device}} (tx)", + "range": true, + "refId": "B" + } + ], + "title": "Network Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 14, + "y": 65 + }, + "id": 54, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(node_network_receive_drop_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "legendFormat": "{{device}} (rx)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(node_network_transmit_drop_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "hide": false, + "instant": false, + "legendFormat": "{{device}} (tx)", + "range": true, + "refId": "B" + } + ], + "title": "Network Packets Dropped", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 19, + "y": 65 + }, + "id": 55, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(node_network_receive_errs_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "legendFormat": "{{device}} (rx)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(node_network_transmit_errs_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "hide": false, + "instant": false, + "legendFormat": "{{device}} (tx)", + "range": true, + "refId": "B" + } + ], + "title": "Network Errors", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 69 + }, + "id": 71, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "increase(node_network_transmit_bytes_total{hostname=\"$hostname\", device!~\"lo|podman.*|veth.*|wg.*\"}[${__rate_interval}])", + "hide": false, + "instant": false, + "legendFormat": "{{device}} (tx)", + "range": true, + "refId": "A" + } + ], + "title": "TX Data", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 73 + }, + "id": 65, + "panels": [], + "title": "SMART", + "type": "row" + }, + { + "datasource": { + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "0": { + "index": 0, + "text": "FAIL" + }, + "1": { + "index": 1, + "text": "PASS" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": 0 + }, + { + "color": "green", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 74 + }, + "id": 66, + "maxPerRow": 4, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "repeat": "smart_disk", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "smartctl_device_smart_status{hostname=\"$hostname\", device=\"$smart_disk\"}", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Status ($smart_disk)", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 77 + }, + "id": 70, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "repeat": "smart_disk", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "max(smartctl_device_attribute{hostname=\"$hostname\", device=\"$smart_disk\", attribute_value_type=\"raw\", attribute_name=\"Raw_Read_Error_Rate\"} or vector(0)) + \nmax(smartctl_device_attribute{hostname=\"$hostname\", device=\"$smart_disk\", attribute_value_type=\"raw\", attribute_name=\"Seek_Error_Rate\"} or vector(0)) + \nmax(smartctl_device_attribute{hostname=\"$hostname\", device=\"$smart_disk\", attribute_value_type=\"raw\", attribute_name=\"Offline_Uncorrectable\"} or vector(0)) + \nmax(smartctl_device_media_errors{hostname=\"$hostname\", device=\"$smart_disk\"} or vector(0))\n", + "hide": false, + "legendFormat": "errors", + "range": true, + "refId": "A" + } + ], + "title": "Errors ($smart_disk)", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 45 + }, + { + "color": "red", + "value": 60 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 80 + }, + "id": 69, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "repeat": "smart_disk", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "smartctl_device_temperature{hostname=\"$hostname\", device=\"$smart_disk\"}", + "legendFormat": "temperature", + "range": true, + "refId": "A" + } + ], + "title": "Temperature ($smart_disk)", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 83 + }, + "id": 68, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "repeat": "smart_disk", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "smartctl_device_power_cycle_count{hostname=\"$hostname\", device=\"$smart_disk\"}", + "legendFormat": "power_cycles", + "range": true, + "refId": "A" + } + ], + "title": "Power Cycles ($smart_disk)", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 86 + }, + "id": 67, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "repeat": "smart_disk", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "smartctl_device_power_on_seconds{hostname=\"$hostname\", device=\"$smart_disk\"}", + "legendFormat": "power_on_seconds", + "range": true, + "refId": "A" + } + ], + "title": "Power On Time ($smart_disk)", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 89 + }, + "id": 57, + "panels": [], + "title": "BTRFS", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [10, 10], + "fill": "dash" + } + }, + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 90 + }, + "id": 58, + "maxPerRow": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "repeat": "btrfs_uuid", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "node_btrfs_used_bytes{hostname=\"$hostname\", uuid=\"$btrfs_uuid\"}", + "legendFormat": "{{block_group_type}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "min(node_btrfs_device_size_bytes{hostname=\"$hostname\", uuid=\"$btrfs_uuid\"})", + "hide": false, + "legendFormat": "total", + "range": true, + "refId": "B" + } + ], + "title": "Storage Used ($btrfs_uuid)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 98 + }, + "id": 59, + "maxPerRow": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "repeat": "btrfs_uuid", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "rate(node_btrfs_commits_total{hostname=\"$hostname\", uuid=\"$btrfs_uuid\"}[${__rate_interval}])", + "legendFormat": "commits", + "range": true, + "refId": "A" + } + ], + "title": "Commit Rate ($btrfs_uuid)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 106 + }, + "id": 60, + "maxPerRow": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "repeat": "btrfs_dev_uuid", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "node_btrfs_device_errors_total{hostname=\"$hostname\", btrfs_dev_uuid=\"$btrfs_dev_uuid\"}", + "legendFormat": "{{type}}", + "range": true, + "refId": "A" + } + ], + "title": "Errors ($btrfs_dev_uuid)", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 114 + }, + "id": 61, + "panels": [], + "title": "Disk", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 115 + }, + "id": 62, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "repeat": "disk", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(node_disk_written_bytes_total{hostname=\"$hostname\", device=\"$disk\"}[${__rate_interval}])", + "hide": false, + "instant": false, + "legendFormat": "write", + "range": true, + "refId": "A" + }, + { + "editorMode": "code", + "expr": "rate(node_disk_read_bytes_total{hostname=\"$hostname\", device=\"$disk\"}[${__rate_interval}])", + "legendFormat": "read", + "range": true, + "refId": "B" + } + ], + "title": "Bytes / s ($disk)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 123 + }, + "id": 63, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "repeat": "disk", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(node_disk_writes_completed_total{hostname=\"$hostname\", device=\"$disk\"}[${__rate_interval}])", + "hide": false, + "instant": false, + "legendFormat": "write", + "range": true, + "refId": "A" + }, + { + "editorMode": "code", + "expr": "rate(node_disk_reads_completed_total{hostname=\"$hostname\", device=\"$disk\"}[${__rate_interval}])", + "legendFormat": "read", + "range": true, + "refId": "B" + } + ], + "title": "IOPS / s ($disk)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 131 + }, + "id": 64, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.1.1", + "repeat": "disk", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "rate(node_disk_io_time_weighted_seconds_total{hostname=\"$hostname\", device=\"$disk\"}[${__rate_interval}])", + "legendFormat": "io_time", + "range": true, + "refId": "A" + } + ], + "title": "IO Time", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 139 + }, + "id": 72, + "panels": [], + "title": "Podman", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic-by-name" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 140 + }, + "id": 74, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(podman_container_cpu_seconds_total{hostname=\"$hostname\"}[$__rate_interval]) / $cpu_count * on(id) group_left(name) podman_container_info{hostname=\"$hostname\"}", + "legendFormat": "{{name}}", + "range": true, + "refId": "A" + } + ], + "title": "CPU Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic-by-name" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 140 + }, + "id": 73, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "podman_container_mem_usage_bytes{hostname=\"$hostname\"} * on(id) group_left(name) podman_container_info{hostname=\"$hostname\"}\n", + "legendFormat": "{{name}}", + "range": true, + "refId": "A" + } + ], + "title": "Memory Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic-by-name" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 152 + }, + "id": 75, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(podman_container_net_input_total{hostname=\"$hostname\"}[$__rate_interval]) * on(id) group_left(name) podman_container_info{hostname=\"$hostname\"}", + "legendFormat": "{{name}} (rx)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(podman_container_net_output_total{hostname=\"$hostname\"}[$__rate_interval]) * on(id) group_left(name) podman_container_info{hostname=\"$hostname\"}", + "hide": false, + "legendFormat": "{{name}} (tx)", + "range": true, + "refId": "B" + } + ], + "title": "Network Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic-by-name" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 152 + }, + "id": 76, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(podman_container_block_input_total{hostname=\"$hostname\"}[$__rate_interval]) * on(id) group_left(name) podman_container_info{hostname=\"$hostname\"}", + "legendFormat": "{{name}} (write)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(podman_container_block_output_total{hostname=\"$hostname\"}[$__rate_interval]) * on(id) group_left(name) podman_container_info{hostname=\"$hostname\"}", + "hide": false, + "legendFormat": "{{name}} (read)", + "range": true, + "refId": "B" + } + ], + "title": "Disk Usage", + "type": "timeseries" } ], "preload": false, @@ -2150,6 +5038,7 @@ "definition": "label_values(node_cpu_seconds_total{hostname=\"$hostname\"},cpu)", "description": "", "includeAll": true, + "multi": true, "name": "cpu", "options": [], "query": { @@ -2159,6 +5048,167 @@ }, "refresh": 1, "regex": "", + "sort": 3, + "type": "query" + }, + { + "allowCustomValue": false, + "current": { + "text": "16", + "value": "16" + }, + "definition": "query_result(count(count by (cpu) (node_cpu_seconds_total{hostname=\"$hostname\"})))", + "description": "", + "hide": 2, + "label": "cpu_count", + "name": "cpu_count", + "options": [], + "query": { + "qryType": 3, + "query": "query_result(count(count by (cpu) (node_cpu_seconds_total{hostname=\"$hostname\"})))", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": ".*\\s([0-9]+)\\s.*", + "type": "query" + }, + { + "current": { + "text": "30", + "value": "30" + }, + "hide": 2, + "label": "extra_watts", + "name": "extra_watts", + "options": [ + { + "selected": true, + "text": "30", + "value": "30" + } + ], + "query": "30", + "type": "custom" + }, + { + "allowCustomValue": false, + "current": { + "text": "0.2350", + "value": "0.2350" + }, + "hide": 2, + "label": "energy_price", + "name": "energy_price", + "options": [ + { + "selected": true, + "text": "0.2350", + "value": "0.2350" + } + ], + "query": "0.2350", + "type": "custom" + }, + { + "allowCustomValue": false, + "current": { + "text": [ + "33bf77cb-15ec-4cd5-ae35-cbe9efa14b18", + "f2cf08e6-c306-492e-997c-c6a0225d52d1" + ], + "value": [ + "33bf77cb-15ec-4cd5-ae35-cbe9efa14b18", + "f2cf08e6-c306-492e-997c-c6a0225d52d1" + ] + }, + "definition": "label_values(node_btrfs_device_size_bytes,uuid)", + "description": "", + "includeAll": true, + "label": "btrfs_uuid", + "multi": true, + "name": "btrfs_uuid", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(node_btrfs_device_size_bytes,uuid)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "allowCustomValue": false, + "current": { + "text": [ + "5e8dfca5-4c6e-4265-8478-128a0ed4fe57", + "601b8df9-94cc-4cf3-93e3-e978605bb3fe", + "a8e4ae38-f617-4dcb-9c13-863f71df2f9f" + ], + "value": [ + "5e8dfca5-4c6e-4265-8478-128a0ed4fe57", + "601b8df9-94cc-4cf3-93e3-e978605bb3fe", + "a8e4ae38-f617-4dcb-9c13-863f71df2f9f" + ] + }, + "definition": "label_values(node_btrfs_device_size_bytes,btrfs_dev_uuid)", + "description": "", + "includeAll": true, + "label": "btrfs_dev_uuid", + "multi": true, + "name": "btrfs_dev_uuid", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(node_btrfs_device_size_bytes,btrfs_dev_uuid)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "allowCustomValue": false, + "current": { + "text": ["nvme0n1", "sda", "sdb"], + "value": ["nvme0n1", "sda", "sdb"] + }, + "definition": "label_values(node_disk_info,device)", + "description": "", + "includeAll": true, + "label": "disk", + "multi": true, + "name": "disk", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(node_disk_info,device)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "allowCustomValue": false, + "current": { + "text": ["sda", "sdb", "nvme0"], + "value": ["sda", "sdb", "nvme0"] + }, + "definition": "label_values(smartctl_device,device)", + "description": "", + "includeAll": true, + "label": "smart_disk", + "multi": true, + "name": "smart_disk", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(smartctl_device,device)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", "type": "query" } ] @@ -2171,5 +5221,5 @@ "timezone": "browser", "title": "System", "uid": "system", - "version": 1 + "version": 23 } diff --git a/hosts/jupiter/users/storm/configs/console/podman/grafana/dashboards/traefik.json b/hosts/jupiter/users/storm/configs/console/podman/grafana/dashboards/traefik.json new file mode 100644 index 0000000..1e605af --- /dev/null +++ b/hosts/jupiter/users/storm/configs/console/podman/grafana/dashboards/traefik.json @@ -0,0 +1,872 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 2, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 9, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "sum(increase(traefik_entrypoint_requests_bytes_total{hostname=\"$hostname\"}[$__range]))", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Requests Received", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 10, + "x": 4, + "y": 0 + }, + "id": 3, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(traefik_entrypoint_requests_total{hostname=\"$hostname\"}[$__rate_interval])", + "legendFormat": "{{entrypoint}}/{{protocol}}: {{method}}: {{code}}", + "range": true, + "refId": "A" + } + ], + "title": "Entrypoint Requests", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 10, + "x": 14, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(traefik_entrypoint_requests_bytes_total{hostname=\"$hostname\"}[$__rate_interval])", + "legendFormat": "req: {{entrypoint}}/{{protocol}}: {{method}}: {{code}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(traefik_entrypoint_responses_bytes_total{hostname=\"$hostname\"}[$__rate_interval])", + "hide": false, + "instant": false, + "legendFormat": "res: {{entrypoint}}/{{protocol}}: {{method}}: {{code}}", + "range": true, + "refId": "B" + } + ], + "title": "Entrypoint Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 6 + }, + "id": 10, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "sum(increase(traefik_entrypoint_responses_bytes_total{hostname=\"$hostname\"}[$__range]))", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Responses Sent", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 12 + }, + "id": 5, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(traefik_service_requests_total{hostname=\"$hostname\"}[$__rate_interval])", + "legendFormat": "{{service}}/{{protocol}}: {{method}}: {{code}}", + "range": true, + "refId": "A" + } + ], + "title": "Service Requests", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 12 + }, + "id": 7, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(traefik_service_requests_bytes_total{hostname=\"$hostname\"}[$__rate_interval])", + "legendFormat": "req: {{service}}/{{protocol}}: {{method}}: {{code}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(traefik_service_responses_bytes_total{hostname=\"$hostname\"}[$__rate_interval])", + "hide": false, + "instant": false, + "legendFormat": "res: {{service}}/{{protocol}}: {{method}}: {{code}}", + "range": true, + "refId": "B" + } + ], + "title": "Service Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 6, + "x": 0, + "y": 24 + }, + "id": 8, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "rate(authelia_request{hostname=\"$hostname\"}[$__rate_interval])", + "legendFormat": "{{method}}: {{code}}", + "range": true, + "refId": "A" + } + ], + "title": "Auth Requests", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 6, + "x": 6, + "y": 24 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "traefik_open_connections{hostname=\"$hostname\"}", + "legendFormat": "{{entrypoint}}", + "range": true, + "refId": "A" + } + ], + "title": "Connections", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 24 + }, + "id": 6, + "options": { + "legend": { + "calcs": ["mean"], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.1.1", + "targets": [ + { + "editorMode": "code", + "expr": "sum by(service) (rate(traefik_service_request_duration_seconds_sum{hostname=\"$hostname\"}[$__rate_interval]))\n", + "legendFormat": "{{service}}", + "range": true, + "refId": "A" + } + ], + "title": "Request Duration", + "type": "timeseries" + } + ], + "preload": false, + "refresh": "30s", + "schemaVersion": 41, + "tags": [], + "templating": { + "list": [ + { + "current": { + "text": "jupiter", + "value": "jupiter" + }, + "definition": "label_values(hostname)", + "name": "hostname", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(hostname)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + } + ] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Traefik", + "uid": "9789120c-ed69-448a-9ef8-77e73b5a25e2", + "version": 7 +} diff --git a/hosts/jupiter/users/storm/configs/console/podman/grafana/default.nix b/hosts/jupiter/users/storm/configs/console/podman/grafana/default.nix index fb74131..cb742df 100644 --- a/hosts/jupiter/users/storm/configs/console/podman/grafana/default.nix +++ b/hosts/jupiter/users/storm/configs/console/podman/grafana/default.nix @@ -127,7 +127,27 @@ in networks.grafana.ref networks.traefik.ref ]; - volumes = [ "${hmConfig.sops.templates.grafana.path}:/etc/grafana/grafana.ini" ]; + volumes = + let + dashboards = (pkgs.formats.yaml { }).generate "default.yaml" { + apiVersion = 1; + + providers = [ + { + name = "Default"; + folder = ""; + type = "file"; + url = "http://prometheus:9090"; + options.path = "/var/lib/grafana/dashboards"; + } + ]; + }; + in + [ + "${hmConfig.sops.templates.grafana.path}:/etc/grafana/grafana.ini:ro" + "${dashboards}:/etc/grafana/conf/provisioning/dashboards/default.yaml:ro" + "${./dashboards}:/var/lib/grafana/dashboards:ro" + ]; labels = [ "traefik.enable=true" "traefik.http.routers.grafana.rule=Host(`stats.karaolidis.com`)"