diff --git a/infra/grafana/heizraum.json b/infra/grafana/heizraum.json new file mode 100644 index 000000000..8330df0b6 --- /dev/null +++ b/infra/grafana/heizraum.json @@ -0,0 +1,35 @@ +{ + "uid": "heizraum", + "title": "Heizraum", + "tags": ["heizraum", "temperatur", "puffer", "heizkreise"], + "timezone": "browser", + "schemaVersion": 39, + "version": 1, + "refresh": "30s", + "time": {"from": "now-6h", "to": "now"}, + "id": null, + "panels": [ + { + "id": 1, + "gridPos": {"h": 4, "w": 4, "x": 0, "y": 0}, + "type": "stat", + "title": "Status", + "datasource": {"type": "influxdb", "uid": "ffptl25vzylfke"}, + "fieldConfig": { + "defaults": { + "unit": "none", + "decimals": 0, + "thresholds": {"mode": "absolute", "steps": [{"color": "red", "value": null}, {"color": "green", "value": 1}]}, + "mappings": [ + {"type": "value", "options": {"1": {"text": "ONLINE", "color": "green", "index": 0}, "0": {"text": "OFFLINE", "color": "red", "index": 1}}}, + {"type": "special", "options": {"match": "null", "result": {"text": "OFFLINE", "color": "red", "index": 2}}} + ], + "noValue": "OFFLINE", + "color": {"mode": "thresholds"} + } + }, + "options": {"reduceOptions": {"values": false, "calcs": ["lastNotNull"]}, "orientation": "auto", "textMode": "auto", "colorMode": "background", "graphMode": "none", "justifyMode": "auto"}, + "targets": [{"refId": "A", "datasource": {"type": "influxdb", "uid": "ffptl25vzylfke"}, "query": "SELECT last(\"value\") FROM \"node_status\" WHERE \"node\"='heizraum'", "rawQuery": true}] + } + ] +}