diff --git a/charts/nut-exporter/templates/pod-monitor.yaml b/charts/nut-exporter/templates/podmonitor.yaml similarity index 81% rename from charts/nut-exporter/templates/pod-monitor.yaml rename to charts/nut-exporter/templates/podmonitor.yaml index 35be911d7d005822a98a0f120ac9a82ac516f31b..3255e5cdf4e4887ef89a69a4bdba551457ee420b 100644 --- a/charts/nut-exporter/templates/pod-monitor.yaml +++ b/charts/nut-exporter/templates/podmonitor.yaml @@ -4,18 +4,18 @@ kind: PodMonitor metadata: labels: {{- include "nutexporter.labels" . | nindent 4 }} - {{- with .Values.serviceMonitor.labels }} + {{- with .Values.podMonitor.labels }} {{- toYaml . | nindent 4 }} {{- end }} name: {{ include "nutexporter.name" . }} spec: podMetricsEndpoints: - interval: 15s - {{- with $.Values.serviceMonitor.metricRelabelings }} + {{- with $.Values.podMonitor.metricRelabelings }} metricRelabelings: {{ toYaml . | nindent 6}} {{- end }} - {{- with $.Values.serviceMonitor.relabelings }} + {{- with $.Values.podMonitor.relabelings }} relabelings: {{ toYaml . | nindent 6}} {{- end }}