From 00505f515bda2eb74f52fac6cfbd3a7c3380a8c9 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Wed, 11 Oct 2023 20:12:19 +0200 Subject: [PATCH] feat(nut-exporter): Add annotations to dashboard --- charts/nut-exporter/Chart.yaml | 2 +- charts/nut-exporter/README.md | 2 +- charts/nut-exporter/dashboards/default.json | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/charts/nut-exporter/Chart.yaml b/charts/nut-exporter/Chart.yaml index bf5257d01..67069048b 100644 --- a/charts/nut-exporter/Chart.yaml +++ b/charts/nut-exporter/Chart.yaml @@ -15,5 +15,5 @@ sources: - https://github.com/acolombier/nut_exporter/tree/feat/add-helm-chart type: application -version: 0.3.9 +version: 0.3.10 appVersion: 3.0.0 diff --git a/charts/nut-exporter/README.md b/charts/nut-exporter/README.md index c793734a8..fbf9643f1 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 1a5303a31..417f5f9d3 100755 --- a/charts/nut-exporter/dashboards/default.json +++ b/charts/nut-exporter/dashboards/default.json @@ -52,6 +52,17 @@ "type": "dashboard" }, "type": "dashboard" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "max by (ups, flag) (network_ups_tools_ups_status{ups=\"$ups\", flag!=\"OL\"}) == 1", + "iconColor": "red", + "name": "UPS Status Events", + "titleFormat": "{{flag}}}" } ] }, -- GitLab