From a01386329ac10abda27225c8e2b879edb6aeb90a Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Sun, 8 Oct 2023 03:47:47 +0200 Subject: [PATCH] fix(nut-exporter): Final fix for nut-exporter dashboard --- charts/.utils/gitlab-ci.yaml | 1 + charts/nut-exporter/Chart.yaml | 2 +- charts/nut-exporter/README.md | 2 +- charts/nut-exporter/dashboards/default.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/.utils/gitlab-ci.yaml b/charts/.utils/gitlab-ci.yaml index 188684ca1..f04882900 100644 --- a/charts/.utils/gitlab-ci.yaml +++ b/charts/.utils/gitlab-ci.yaml @@ -9,6 +9,7 @@ - mastodon - nextcloud - hedgedoc + - nut-exporter chart-package: stage: build diff --git a/charts/nut-exporter/Chart.yaml b/charts/nut-exporter/Chart.yaml index 2a95f98f1..c258be33a 100644 --- a/charts/nut-exporter/Chart.yaml +++ b/charts/nut-exporter/Chart.yaml @@ -13,5 +13,5 @@ sources: - https://github.com/acolombier/nut_exporter/tree/feat/add-helm-chart type: application -version: 0.3.7 +version: 0.3.8 appVersion: 3.0.0 diff --git a/charts/nut-exporter/README.md b/charts/nut-exporter/README.md index 214060c81..fa66fd750 100644 --- a/charts/nut-exporter/README.md +++ b/charts/nut-exporter/README.md @@ -1,6 +1,6 @@ # nut-exporter -   +   Installs NUT exporter in Kubernetes diff --git a/charts/nut-exporter/dashboards/default.json b/charts/nut-exporter/dashboards/default.json index 9218e4a68..1a5303a31 100755 --- a/charts/nut-exporter/dashboards/default.json +++ b/charts/nut-exporter/dashboards/default.json @@ -145,7 +145,7 @@ "type": "prometheus", "uid": "${datasource}" }, - "expr": "max by (ups, flag) (network_ups_tools_ups_status) == 1", + "expr": "max by (ups, flag) (network_ups_tools_ups_status{ups=\"$ups\"}) == 1", "interval": "", "legendFormat": "{{flag}}", "refId": "A" -- GitLab