From dbc0a46faf4611cebcb5621ea5c628186fc6c48b Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 30 Jun 2022 12:31:13 +0200 Subject: [PATCH] Fix `prometheus-nut-exporter` service monitor. (#1637) --- charts/stable/prometheus-nut-exporter/Chart.yaml | 6 +++--- .../prometheus-nut-exporter/templates/servicemonitor.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/stable/prometheus-nut-exporter/Chart.yaml b/charts/stable/prometheus-nut-exporter/Chart.yaml index b5ee7c6d..26d29b53 100644 --- a/charts/stable/prometheus-nut-exporter/Chart.yaml +++ b/charts/stable/prometheus-nut-exporter/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 appVersion: 1.1.1 description: Prometheus NUT Exporter a service monitor to send NUT server metrics to a Prometheus instance. name: prometheus-nut-exporter -version: 5.3.3 +version: 5.3.4 kubeVersion: ">=1.16.0-0" keywords: - nut @@ -21,5 +21,5 @@ dependencies: version: 4.4.2 annotations: artifacthub.io/changes: |- - - kind: changed - description: Upgraded `common` chart dependency to version 4.4.2 + - kind: fixed + description: Fixed `ServiceMonitor` endpoints loop. diff --git a/charts/stable/prometheus-nut-exporter/templates/servicemonitor.yaml b/charts/stable/prometheus-nut-exporter/templates/servicemonitor.yaml index 935b1b00..89e5f813 100644 --- a/charts/stable/prometheus-nut-exporter/templates/servicemonitor.yaml +++ b/charts/stable/prometheus-nut-exporter/templates/servicemonitor.yaml @@ -15,8 +15,8 @@ spec: matchLabels: {{- include "common.labels.selectorLabels" . | nindent 6 }} endpoints: - - port: metrics {{- range .Values.metrics.serviceMonitor.targets }} + - port: metrics interval: {{ .interval }} scrapeTimeout: {{ .scrapeTimeout }} path: /metrics