From bb447dce395d2c44f55c53cee5d452849c50ba70 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Wed, 20 Dec 2023 18:29:11 +0100
Subject: [PATCH] fix(monitoring): Fix cpu-check dashboard

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

diff --git a/infrastructure/monitoring/dashboards/cluster-cpu-check.json b/infrastructure/monitoring/dashboards/cluster-cpu-check.json
index b9e92b978..04692fbc9 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[$__range]))",
+            "expr": "avg(avg_over_time(node_hwmon_power_watt[$__range]))",
             "instant": false,
             "legendFormat": "__auto",
             "range": true,
@@ -216,7 +216,7 @@
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
-            "expr": "max by (node) (label_replace(max(node_hwmon_power_average_watt) by (instance), \"internal_ip\", \"$1\", \"instance\", \"(.*):9100\") * on (internal_ip) group_left(node) kube_node_info)",
+            "expr": "max by (node) (label_replace(max(node_hwmon_power_watt) by (instance), \"internal_ip\", \"$1\", \"instance\", \"(.*):9100\") * on (internal_ip) group_left(node) kube_node_info)",
             "hide": true,
             "instant": false,
             "legendFormat": "__auto",
@@ -230,7 +230,7 @@
             },
             "editorMode": "code",
             "exemplar": false,
-            "expr": "avg(avg_over_time(node_hwmon_power_average_watt[$__rate_interval]))",
+            "expr": "avg(avg_over_time(node_hwmon_power_watt[$__rate_interval]))",
             "hide": false,
             "instant": false,
             "interval": "60",
-- 
GitLab