Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Common usecase for a servicemonitor is to add additional labels to it… (
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-dyer-sp authored Nov 20, 2021
1 parent a74134c commit e9b6863
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/kafka-lag-exporter/templates/050-Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
jobLabel: {{ include "kafka-lag-exporter.fullname" . }}
{{- if .Values.service.additionalLabels }}
{{ toYaml .Values.service.additionalLabels | indent 4 -}}
{{- end }}
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "{{ .Values.service.port }}"
Expand Down
1 change: 1 addition & 0 deletions charts/kafka-lag-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ initContainers: []
service:
type: ClusterIP
port: 8000
additionalLabels: {}
resources: {}
# limits:
# cpu: 100m
Expand Down

0 comments on commit e9b6863

Please sign in to comment.