Skip to content
Open
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
5 changes: 4 additions & 1 deletion charts/pulsar/templates/autorecovery-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ metadata:
chart: {{ template "pulsar.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if $.Values.podMonitor.customLabels }}
{{ $.Values.podMonitor.customLabels | toYaml | trim }}
{{- end }}
spec:
jobLabel: recovery
podMetricsEndpoints:
Expand All @@ -52,4 +55,4 @@ spec:
matchLabels:
{{- include "pulsar.matchLabels" . | nindent 6 }}
component: {{ .Values.autorecovery.component }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/pulsar/templates/bookkeeper-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ metadata:
chart: {{ template "pulsar.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if $.Values.podMonitor.customLabels }}
{{ $.Values.podMonitor.customLabels | toYaml | trim }}
{{- end }}
spec:
jobLabel: bookie
podMetricsEndpoints:
Expand Down
3 changes: 3 additions & 0 deletions charts/pulsar/templates/broker-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ metadata:
chart: {{ template "pulsar.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if $.Values.podMonitor.customLabels }}
{{ $.Values.podMonitor.customLabels | toYaml | trim }}
{{- end }}
spec:
jobLabel: broker
podMetricsEndpoints:
Expand Down
3 changes: 3 additions & 0 deletions charts/pulsar/templates/proxy-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ metadata:
chart: {{ template "pulsar.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if $.Values.podMonitor.customLabels }}
{{ $.Values.podMonitor.customLabels | toYaml | trim }}
{{- end }}
spec:
jobLabel: proxy
podMetricsEndpoints:
Expand Down
3 changes: 3 additions & 0 deletions charts/pulsar/templates/zookeeper-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ metadata:
chart: {{ template "pulsar.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if $.Values.podMonitor.customLabels }}
{{ $.Values.podMonitor.customLabels | toYaml | trim }}
{{- end }}
spec:
jobLabel: zookeeper
podMetricsEndpoints:
Expand Down
5 changes: 5 additions & 0 deletions charts/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ initialize: false
# environment: dev
# customer: apache

## Global metric scraping settings
podMonitor:
# Add custom labels to the podMonitor resources
customLabels: {}

## Pulsar Metadata Prefix
##
## By default, pulsar stores all the metadata at root path.
Expand Down