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

Common usecase for a servicemonitor is to add additional labels to it… #258

Merged
merged 1 commit into from
Nov 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -93,6 +93,7 @@ initContainers: []
service:
type: ClusterIP
port: 8000
additionalLabels: {}
resources: {}
# limits:
# cpu: 100m
Expand Down