diff --git a/charts/nut-exporter/Chart.yaml b/charts/nut-exporter/Chart.yaml index 1a41ac1b4e734399c13dfaf8cfe5a15513179cb7..167407d7fe178dc8b9584521dc5b58540d376be4 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.5 +version: 0.3.6 appVersion: 3.0.0 diff --git a/charts/nut-exporter/README.md b/charts/nut-exporter/README.md index 41c576771b00cf8bceddf6bc5da8fb07f163c413..2d85b27417b275275892ac21ee67f28727447162 100644 --- a/charts/nut-exporter/README.md +++ b/charts/nut-exporter/README.md @@ -1,6 +1,6 @@ # nut-exporter -   +   Installs NUT exporter in Kubernetes @@ -21,7 +21,7 @@ Installs NUT exporter in Kubernetes | image.repository | string | `"ghcr.io/druggeri/nut_exporter"` | | | image.tag | string | `""` | | | nodeSelector | object | `{}` | | -| podMonitor | object | `{"enabled":true,"labels":{},"params":{},"relabelings":[{"source_labels":["__param_ups"],"target_label":"ups"}]}` | Enables podMonitor object for prometheus-operator based setups | +| podMonitor | object | `{"enabled":true,"labels":{},"params":{},"relabelings":[{"sourceLabels":["__param_ups"],"targetLabel":"ups"}]}` | Enables podMonitor object for prometheus-operator based setups | | podMonitor.params | object | `{}` | parameters that are used on the scrape target required for functional dashboard | | podSecurityContext.runAsGroup | int | `3642` | | | podSecurityContext.runAsNonRoot | bool | `true` | | diff --git a/charts/nut-exporter/dashboards/default.json b/charts/nut-exporter/dashboards/default.json index 5d9b12034a3daad591a58cc0ed6b5d0edf5ff0c3..58c06bfae7edf74d3a4a70f0dc7219f94a2a8d23 100755 --- a/charts/nut-exporter/dashboards/default.json +++ b/charts/nut-exporter/dashboards/default.json @@ -431,7 +431,7 @@ "type": "prometheus", "uid": "${datasource}" }, - "expr": "min by (ups) (network_ups_tools_battery_runtime{ups=\"$ups\")}", + "expr": "min by (ups) (network_ups_tools_battery_runtime{ups=\"$ups\"})", "interval": "", "legendFormat": "", "refId": "A" diff --git a/charts/nut-exporter/tests/__snapshot__/snapshot_test.yaml.snap b/charts/nut-exporter/tests/__snapshot__/snapshot_test.yaml.snap index 117eaddc6e1ab26dc73315c65ae8df2be0a7a3e1..cd7d3cbc765c49ff3864d446e770560f3656bfd6 100644 --- a/charts/nut-exporter/tests/__snapshot__/snapshot_test.yaml.snap +++ b/charts/nut-exporter/tests/__snapshot__/snapshot_test.yaml.snap @@ -106,9 +106,9 @@ should match basic snapshot: path: /ups_metrics port: http relabelings: - - source_labels: + - sourceLabels: - __param_ups - target_label: ups + targetLabel: ups scheme: http selector: matchLabels: diff --git a/charts/nut-exporter/values.yaml b/charts/nut-exporter/values.yaml index ca99461cc80f62d2b7a45e00c358b95b727e8e74..4729967c5d330772a004d7bb3467864d4b3478c2 100644 --- a/charts/nut-exporter/values.yaml +++ b/charts/nut-exporter/values.yaml @@ -14,8 +14,8 @@ podMonitor: enabled: true labels: {} relabelings: - - source_labels: [__param_ups] - target_label: ups + - sourceLabels: [__param_ups] + targetLabel: ups # -- parameters that are used on the scrape target required for functional dashboard params: {} # ups: