diff --git a/stable/prometheus-blackbox-exporter/Chart.yaml b/stable/prometheus-blackbox-exporter/Chart.yaml index 663ff8eb96..3b5b016bd8 100644 --- a/stable/prometheus-blackbox-exporter/Chart.yaml +++ b/stable/prometheus-blackbox-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Prometheus Blackbox Exporter name: prometheus-blackbox-exporter -version: 4.1.1 +version: 4.2.0 appVersion: 0.16.0 home: https://github.com/prometheus/blackbox_exporter sources: diff --git a/stable/prometheus-blackbox-exporter/templates/servicemonitor.yaml b/stable/prometheus-blackbox-exporter/templates/servicemonitor.yaml index 1af8119baa..b7c461cc12 100644 --- a/stable/prometheus-blackbox-exporter/templates/servicemonitor.yaml +++ b/stable/prometheus-blackbox-exporter/templates/servicemonitor.yaml @@ -26,10 +26,8 @@ spec: target: - {{ .url }} metricRelabelings: - - sourceLabels: [__address__] - targetLabel: __param_target - - sourceLabels: [__param_target] - targetLabel: instance + - targetLabel: instance + replacement: {{ .url }} - targetLabel: target replacement: {{ .name }} jobLabel: "{{ $.Release.Name }}" @@ -42,4 +40,3 @@ spec: - {{ $.Release.Namespace }} {{- end }} {{- end }} -