From 245a6493913292b46b24ca3a614c79c6e36ce304 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Wed, 11 Oct 2023 18:21:12 +0200
Subject: [PATCH] fix(monitoring): Fix dashboard using interval instead of
 range

---
 infrastructure/monitoring/dashboards/cluster-cpu-check.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure/monitoring/dashboards/cluster-cpu-check.json b/infrastructure/monitoring/dashboards/cluster-cpu-check.json
index 85dd81d88..b9e92b978 100644
--- a/infrastructure/monitoring/dashboards/cluster-cpu-check.json
+++ b/infrastructure/monitoring/dashboards/cluster-cpu-check.json
@@ -118,7 +118,7 @@
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
-            "expr": "avg(avg_over_time(node_hwmon_power_average_watt[$__interval]))",
+            "expr": "avg(avg_over_time(node_hwmon_power_average_watt[$__range]))",
             "instant": false,
             "legendFormat": "__auto",
             "range": true,
@@ -579,4 +579,4 @@
     "uid": "ab765508-9634-48d4-93b8-bd6f2e24ac05",
     "version": 5,
     "weekStart": ""
-  }
\ No newline at end of file
+  }
-- 
GitLab