diff --git a/charts/prometheus-blackbox-exporter/Chart.yaml b/charts/prometheus-blackbox-exporter/Chart.yaml index 6f9817f3e236..f5a55bc51ba3 100644 --- a/charts/prometheus-blackbox-exporter/Chart.yaml +++ b/charts/prometheus-blackbox-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Prometheus Blackbox Exporter name: prometheus-blackbox-exporter -version: 8.16.0 +version: 8.17.0 appVersion: v0.25.0 home: https://github.com/prometheus/blackbox_exporter sources: diff --git a/charts/prometheus-blackbox-exporter/templates/selfservicemonitor.yaml b/charts/prometheus-blackbox-exporter/templates/selfservicemonitor.yaml index d750a5609186..abbb7a1cd44a 100644 --- a/charts/prometheus-blackbox-exporter/templates/selfservicemonitor.yaml +++ b/charts/prometheus-blackbox-exporter/templates/selfservicemonitor.yaml @@ -19,6 +19,10 @@ spec: {{- with .Values.serviceMonitor.selfMonitor.port }} port: {{ . }} {{- end }} + {{- if .Values.serviceMonitor.selfMonitor.additionalMetricsRelabels }} + metricRelabelings: + {{- toYaml .Values.serviceMonitor.selfMonitor.additionalMetricsRelabels | nindent 6 }} + {{- end }} {{- if .Values.serviceMonitor.selfMonitor.tlsConfig }} tlsConfig: {{- toYaml .Values.serviceMonitor.selfMonitor.tlsConfig | nindent 6 }}