diff --git a/charts/opentelemetry-collector/templates/servicemonitor.yaml b/charts/opentelemetry-collector/templates/servicemonitor.yaml index 6aa359c8a..04fe55b29 100644 --- a/charts/opentelemetry-collector/templates/servicemonitor.yaml +++ b/charts/opentelemetry-collector/templates/servicemonitor.yaml @@ -15,13 +15,13 @@ spec: {{- include "opentelemetry-collector.selectorLabels" . | nindent 6 }} {{- include "opentelemetry-collector.component" . | nindent 6 }} endpoints: - {{- toYaml .Values.serviceMonitor.metricsEndpoints | nindent 2 }} - {{- with .Values.serviceMonitor.relabelings }} - relabelings: - {{- toYaml . | nindent 4 }} - {{- end }} - {{- with .Values.serviceMonitor.metricRelabelings }} - metricRelabelings: - {{- toYaml . | nindent 4 }} - {{- end }} + {{- toYaml .Values.serviceMonitor.metricsEndpoints | nindent 4 }} + {{- with .Values.serviceMonitor.relabelings }} + relabelings: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.serviceMonitor.metricRelabelings }} + metricRelabelings: + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} diff --git a/charts/opentelemetry-operator/templates/servicemonitor.yaml b/charts/opentelemetry-operator/templates/servicemonitor.yaml index 3c9d8c5a4..93964d21c 100644 --- a/charts/opentelemetry-operator/templates/servicemonitor.yaml +++ b/charts/opentelemetry-operator/templates/servicemonitor.yaml @@ -22,15 +22,15 @@ spec: {{- include "opentelemetry-operator.selectorLabels" . | nindent 6 }} app.kubernetes.io/component: controller-manager endpoints: - {{- toYaml .Values.manager.serviceMonitor.metricsEndpoints | nindent 2 }} - {{- with .Values.manager.serviceMonitor.relabelings }} - relabelings: - {{- toYaml . | nindent 4 }} - {{- end }} - {{- with .Values.manager.serviceMonitor.metricRelabelings }} - metricRelabelings: - {{- toYaml . | nindent 4 }} - {{- end }} + {{- toYaml .Values.manager.serviceMonitor.metricsEndpoints | nindent 4 }} + {{- with .Values.manager.serviceMonitor.relabelings }} + relabelings: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.manager.serviceMonitor.metricRelabelings }} + metricRelabelings: + {{- toYaml . | nindent 8 }} + {{- end }} namespaceSelector: matchNames: - {{ .Release.Namespace }}