diff --git a/templates/prometheus/prometheus.yaml b/templates/prometheus/prometheus.yaml index 1229c1c71ceff15b6150b4c81c41c1f6025aad94..5195952336c8782d8a1c85536ebadf34e9c5a832 100644 --- a/templates/prometheus/prometheus.yaml +++ b/templates/prometheus/prometheus.yaml @@ -49,6 +49,9 @@ spec: action: drop - regex: '(id|uuid)' action: labeldrop + {{- if .Values.metrics.prometheus.server.relabelings}} + {{- .Values.metrics.prometheus.server.relabelings | toYaml | nindent 8}} + {{- end }} metadataConfig: send: false {{if .Values.metrics.prometheus.server.remoteWrite.endpoint }}