Skip to content

Commit 28c3045

Browse files
authored
added support for relabelings in servicemonitor (#6562)
1 parent b98c0c3 commit 28c3045

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/devtron-reference-helm-charts/statefulset-chart_5-1-0/templates/servicemonitor.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ spec:
5555
{{- if .servicemonitor.metricRelabelings}}
5656
metricRelabelings:
5757
{{toYaml .servicemonitor.metricRelabelings | indent 8 }}
58+
{{- end }}
59+
{{- if .servicemonitor.relabelings }}
60+
relabelings:
61+
{{ toYaml .servicemonitor.relabelings | indent 8 }}
5862
{{- end }}
5963
{{- end }}
6064
{{- end }}
@@ -94,6 +98,10 @@ spec:
9498
{{- if .servicemonitor.metricRelabelings}}
9599
metricRelabelings:
96100
{{toYaml .servicemonitor.metricRelabelings | indent 8 }}
101+
{{- end }}
102+
{{- if .servicemonitor.relabelings }}
103+
relabelings:
104+
{{ toYaml .servicemonitor.relabelings | indent 8 }}
97105
{{- end }}
98106
{{- end }}
99107
{{- end }}

0 commit comments

Comments
 (0)