Skip to content

Commit

Permalink
[surveyor helm] add support for relabelings and metricRelabelings on …
Browse files Browse the repository at this point in the history
…serviceMonitor (#830)

Add support for relabelings and metricRelabelings on serviceMonitor
  • Loading branch information
0xflatheadfred authored Nov 27, 2023
1 parent a457ff2 commit cae6388
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helm/charts/surveyor/templates/serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ spec:
{{- if .Values.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- end }}
{{- with .Values.serviceMonitor.relabelings }}
relabelings:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.serviceMonitor.metricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "surveyor.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/surveyor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ serviceMonitor:
annotations: {}
# interval:
# scrapeTimeout:
relabelings: []
metricRelabelings: []

ingress:
enabled: false
Expand Down

0 comments on commit cae6388

Please sign in to comment.