From ddc7eac00fe21ba7a7c30eeb4b033daadf6a1581 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sun, 8 Oct 2023 02:31:47 +0200
Subject: [PATCH] fix(nut-exporter): Fix some more power ranges for UPS
 dashboard
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

I'm currently learning a lot about UPSes and the european power grid.

Example: Linepower is: 230 V ± 23 V with a frequency of 50 Hz ± 0,2 Hz

I didn't know the range was that big.

And of UPS batteries rated for 12 voltes, it's comepletely fine to reach
14 volts when fully charged.
---
 charts/nut-exporter/Chart.yaml              |  2 +-
 charts/nut-exporter/README.md               |  2 +-
 charts/nut-exporter/dashboards/default.json | 18 +++++++++++++-----
 3 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/charts/nut-exporter/Chart.yaml b/charts/nut-exporter/Chart.yaml
index c80d089eb..871aaa782 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.1
+version: 0.3.2
 appVersion: 3.0.0
diff --git a/charts/nut-exporter/README.md b/charts/nut-exporter/README.md
index ce0421303..3870279ff 100644
--- a/charts/nut-exporter/README.md
+++ b/charts/nut-exporter/README.md
@@ -1,6 +1,6 @@
 # nut-exporter
 
-![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
+![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
 
 Installs NUT exporter in Kubernetes
 
diff --git a/charts/nut-exporter/dashboards/default.json b/charts/nut-exporter/dashboards/default.json
index b40969a3a..54a2abc89 100755
--- a/charts/nut-exporter/dashboards/default.json
+++ b/charts/nut-exporter/dashboards/default.json
@@ -653,7 +653,7 @@
       "fieldConfig": {
         "defaults": {
           "mappings": [],
-          "max": 240,
+          "max": 260,
           "min": 210,
           "thresholds": {
             "mode": "absolute",
@@ -664,7 +664,7 @@
               },
               {
                 "color": "dark-yellow",
-                "value": 215
+                "value": 207
               },
               {
                 "color": "dark-green",
@@ -676,7 +676,7 @@
               },
               {
                 "color": "dark-red",
-                "value": 235
+                "value": 253
               }
             ]
           }
@@ -797,7 +797,7 @@
           "format": "short",
           "label": "",
           "logBase": 1,
-          "max": "240",
+          "max": "260",
           "min": "210",
           "show": true
         },
@@ -839,13 +839,21 @@
                 "color": "dark-red",
                 "value": null
               },
+              {
+                "color": "dark-yellow",
+                "value": 10
+              },
               {
                 "color": "dark-green",
                 "value": 11
               },
               {
-                "color": "dark-red",
+                "color": "dark-yellow",
                 "value": 13
+              },
+              {
+                "color": "dark-red",
+                "value": 14
               }
             ]
           },
-- 
GitLab