Skip to content

Commit

Permalink
[prometheus-blackbox-exporter] define port field in selfservicemonitor (
Browse files Browse the repository at this point in the history
#4258)

* define port field in selfservicemonitor

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

* Update values.yaml

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

* Update values.yaml

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

---------

Signed-off-by: Sheikh-Abubaker <[email protected]>
  • Loading branch information
Sheikh-Abubaker authored Feb 21, 2024
1 parent d97743e commit 71bba71
Show file tree
Hide file tree
Showing 3 changed files with 6 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.10.1
version: 8.11.0
appVersion: v0.24.0
home: https://github.com/prometheus/blackbox_exporter
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
interval: {{ .Values.serviceMonitor.selfMonitor.interval }}
scrapeTimeout: {{ .Values.serviceMonitor.selfMonitor.scrapeTimeout }}
scheme: http
{{- with .Values.serviceMonitor.selfMonitor.port }}
port: {{ . }}
{{- end }}
{{- if .Values.serviceMonitor.selfMonitor.additionalRelabeling }}
relabelings:
{{- toYaml .Values.serviceMonitor.selfMonitor.additionalRelabeling | nindent 6 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-blackbox-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ serviceMonitor:
path: /metrics
interval: 30s
scrapeTimeout: 30s
## Port can be defined by assigning a value for the port key below
## port:

## If true, a ServiceMonitor CRD is created for a prometheus operator
## https://github.com/coreos/prometheus-operator for each target
Expand Down

0 comments on commit 71bba71

Please sign in to comment.