From f429eebf221dec166e3a3bd0e2004bcc44d2bae1 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Mon, 22 Jul 2024 02:46:19 +0200 Subject: [PATCH] feat(monitoring): Add room temperature to home dashboard --- .../k8s01/monitoring/dashboards/home.json | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/infrastructure/k8s01/monitoring/dashboards/home.json b/infrastructure/k8s01/monitoring/dashboards/home.json index c916e25a7..0f4349995 100644 --- a/infrastructure/k8s01/monitoring/dashboards/home.json +++ b/infrastructure/k8s01/monitoring/dashboards/home.json @@ -1124,6 +1124,85 @@ ], "title": "Memory Limits Commitment", "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 18 + }, + { + "color": "#EAB839", + "value": 28 + }, + { + "color": "red", + "value": 30 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 12, + "x": 0, + "y": 28 + }, + "id": 17, + "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.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "shellyht_temperature_celsius", + "instant": false, + "legendFormat": "{{name}}", + "range": true, + "refId": "A" + } + ], + "title": "Room Temperature", + "type": "stat" } ], "refresh": "auto", -- GitLab