diff --git a/charts/nut-exporter/templates/podmonitor.yaml b/charts/nut-exporter/templates/podmonitor.yaml index 537d71d980d0d5b6a275b7b5c866793f6d8b71f6..a20f344703b60ae899f60125ab7c5b241cbee7b0 100644 --- a/charts/nut-exporter/templates/podmonitor.yaml +++ b/charts/nut-exporter/templates/podmonitor.yaml @@ -26,7 +26,6 @@ spec: params: {{ toYaml . | nindent 8}} {{- end }} - {{- with .Values.podMonitor.metricLabels }} jobLabel: nut-exporter namespaceSelector: matchNames: diff --git a/charts/nut-exporter/tests/__snapshot__/snapshot_test.yaml.snap b/charts/nut-exporter/tests/__snapshot__/snapshot_test.yaml.snap index 61f10d354d00b40e596cb0c5d44214e7fe4366c2..117eaddc6e1ab26dc73315c65ae8df2be0a7a3e1 100644 --- a/charts/nut-exporter/tests/__snapshot__/snapshot_test.yaml.snap +++ b/charts/nut-exporter/tests/__snapshot__/snapshot_test.yaml.snap @@ -105,6 +105,10 @@ should match basic snapshot: - interval: 15s path: /ups_metrics port: http + relabelings: + - source_labels: + - __param_ups + target_label: ups scheme: http selector: matchLabels: