From 643ed5e5f1708ae5020012d988a8488687faa067 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 28 Jun 2022 10:31:01 +0200 Subject: [PATCH] Avoid $instance, use $host instead, as that works both centrally and on the station --- lcu.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lcu.json b/lcu.json index f6c6a68..88f6086 100644 --- a/lcu.json +++ b/lcu.json @@ -947,7 +947,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "avg_over_time(node_hwmon_temp_celsius{instance=\"${station}.astron.nl:9090\", chip=\"platform_coretemp_0\", sensor=\"temp1\"}[10m])", + "expr": "avg_over_time(node_hwmon_temp_celsius{host=\"${station}\", chip=\"platform_coretemp_0\", sensor=\"temp1\"}[10m])", "legendFormat": "average 10m", "range": true, "refId": "avg" @@ -958,7 +958,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "max(max_over_time(node_hwmon_temp_celsius{instance=\"${station}.astron.nl:9090\",chip=\"platform_coretemp_0\"}[10m]))", + "expr": "max(max_over_time(node_hwmon_temp_celsius{host=\"${station}\",chip=\"platform_coretemp_0\"}[10m]))", "hide": false, "legendFormat": "max 10m", "range": true, @@ -970,7 +970,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "min_over_time(node_hwmon_temp_celsius{instance=\"${station}.astron.nl:9090\", chip=\"platform_coretemp_0\", sensor=\"temp1\"}[10m])", + "expr": "min_over_time(node_hwmon_temp_celsius{host=\"${station}\", chip=\"platform_coretemp_0\", sensor=\"temp1\"}[10m])", "hide": false, "legendFormat": "min 10m", "range": true, @@ -1061,7 +1061,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "node_hwmon_power_average_watt{instance=\"${station}.astron.nl:9090\"}", + "expr": "node_hwmon_power_average_watt{host=\"${station}\"}", "refId": "A" } ], -- GitLab