Skip to content

Commit

Permalink
fix(metrics) Modify servicemonitor to scrape signaller port optionally (
Browse files Browse the repository at this point in the history
#170)

* fix(metrics) Modify servicemonitor to scrape signaller port optionally

* Rename Helm values

---------

Co-authored-by: Martin Helmich <[email protected]>
  • Loading branch information
sarasensible and martin-helmich authored Jun 21, 2023
1 parent 240a7c6 commit 2b1c3e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chart/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,14 @@ spec:
{{- if .Values.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- end }}
{{- if .Values.serviceMonitor.scrapeSignaller }}
- port: signaller
path: /metrics
{{- if .Values.serviceMonitor.interval }}
interval: {{ .Values.serviceMonitor.interval }}
{{- end }}
{{- if .Values.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- end }}
{{- end }}
{{- end}}
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ serviceMonitor:
## Scrape Timeout. If not set, the Prometheus default scrape timeout is used.
scrapeTimeout: ""

# Set this to also scrape the signaller metrics in addition to the varnish metrics
scrapeSignaller: false

podSecurityPolicy:
enabled: false
Expand Down

0 comments on commit 2b1c3e5

Please sign in to comment.