Skip to content

Commit

Permalink
add serviceMonitor.targetLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrejevs committed Oct 1, 2021
1 parent dff9857 commit 5536165
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 5536165

Please sign in to comment.