Skip to content

Commit

Permalink
Merge pull request #118 from mrandreyeff/add_targetLabels
Browse files Browse the repository at this point in the history
add serviceMonitor.targetLabels
  • Loading branch information
weeco authored Oct 11, 2021
2 parents dff9857 + 7cbbc7d commit af4fb49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/kminion/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ spec:
- port: metrics
path: /metrics
honorLabels: {{ .Values.serviceMonitor.honorLabels }}
{{- end }}
{{- if .Values.serviceMonitor.targetLabels}}
targetLabels:
{{- toYaml .Values.serviceMonitor.targetLabels | nindent 4}}
{{- end}}
{{- end }}

0 comments on commit af4fb49

Please sign in to comment.