Skip to content

Commit

Permalink
[prometheus-blackbox-exporter] define metricRelabelings in selfservic…
Browse files Browse the repository at this point in the history
…emonitor.yaml to handle additionalMetricsRelabels (#4303)

* Defined metricRelabelings in selfservicemonitor.yaml

Signed-off-by: Sheikh-Abubaker <[email protected]>

* additionalMetricsRelabels set to empty list

Signed-off-by: Sheikh-Abubaker <[email protected]>

* Revert additionalMetricsRelabels to map

Signed-off-by: Sheikh-Abubaker <[email protected]>

* Bump version

Signed-off-by: Sheikh-Abubaker <[email protected]>

---------

Signed-off-by: Sheikh-Abubaker <[email protected]>
Co-authored-by: MH <[email protected]>
  • Loading branch information
Sheikh-Abubaker and zanhsieh authored May 13, 2024
1 parent 71bcd7d commit 24d4002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-blackbox-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 24d4002

Please sign in to comment.