Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prometheus-blackbox-exporter] Add support for port in selfservicemonitor #4258

Merged
merged 5 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Sheikh-Abubaker marked this conversation as resolved.
Show resolved Hide resolved
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
Loading