Skip to content

Commit 5366127

Browse files
authored
(feat) update service monitor to support relabeling
1 parent 280eaec commit 5366127

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

charts/karpenter/templates/servicemonitor.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ spec:
2323
endpoints:
2424
- port: http-metrics
2525
path: /metrics
26+
{{- with .Values.serviceMonitor.relabelings }}
27+
relabelings:
28+
{{- toYaml . | nindent 6 }}
29+
{{- end }}
30+
{{- with .Values.serviceMonitor.metricRelabelings }}
31+
metricRelabelings:
32+
{{- toYaml . | nindent 6 }}
33+
{{- end }}
2634
{{- with .Values.serviceMonitor.endpointConfig }}
2735
{{- toYaml . | nindent 6 }}
2836
{{- end }}

0 commit comments

Comments
 (0)