feat: add metricsRelabelings on podMonitor (#406)
This commit is contained in:
parent
a725188438
commit
eedc21da30
@ -48,6 +48,9 @@ spec:
|
||||
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||
action: replace
|
||||
targetLabel: kubernetes_pod_name
|
||||
{{- if $.Values.autorecovery.podMonitor.metricRelabelings }}
|
||||
metricRelabelings: {{ toYaml $.Values.autorecovery.podMonitor.metricRelabelings | nindent 8 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "pulsar.matchLabels" . | nindent 6 }}
|
||||
|
||||
@ -48,6 +48,9 @@ spec:
|
||||
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||
action: replace
|
||||
targetLabel: kubernetes_pod_name
|
||||
{{- if $.Values.bookkeeper.podMonitor.metricRelabelings }}
|
||||
metricRelabelings: {{ toYaml $.Values.bookkeeper.podMonitor.metricRelabelings | nindent 8 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "pulsar.matchLabels" . | nindent 6 }}
|
||||
|
||||
@ -48,6 +48,9 @@ spec:
|
||||
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||
action: replace
|
||||
targetLabel: kubernetes_pod_name
|
||||
{{- if $.Values.broker.podMonitor.metricRelabelings }}
|
||||
metricRelabelings: {{ toYaml $.Values.broker.podMonitor.metricRelabelings | nindent 8 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "pulsar.matchLabels" . | nindent 6 }}
|
||||
|
||||
@ -48,6 +48,9 @@ spec:
|
||||
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||
action: replace
|
||||
targetLabel: kubernetes_pod_name
|
||||
{{- if $.Values.proxy.podMonitor.metricRelabelings }}
|
||||
metricRelabelings: {{ toYaml $.Values.proxy.podMonitor.metricRelabelings | nindent 8 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "pulsar.matchLabels" . | nindent 6 }}
|
||||
|
||||
@ -48,6 +48,9 @@ spec:
|
||||
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||
action: replace
|
||||
targetLabel: kubernetes_pod_name
|
||||
{{- if $.Values.zookeeper.podMonitor.metricRelabelings }}
|
||||
metricRelabelings: {{ toYaml $.Values.zookeeper.podMonitor.metricRelabelings | nindent 8 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "pulsar.matchLabels" . | nindent 6 }}
|
||||
|
||||
@ -290,6 +290,9 @@ zookeeper:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
scrapeTimeout: 10s
|
||||
metricRelabelings:
|
||||
# - action: labeldrop
|
||||
# regex: cluster
|
||||
# True includes annotation for statefulset that contains hash of corresponding configmap, which will cause pods to restart on configmap change
|
||||
restartPodsOnConfigMapChange: false
|
||||
ports:
|
||||
@ -436,6 +439,9 @@ bookkeeper:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
scrapeTimeout: 10s
|
||||
metricRelabelings:
|
||||
# - action: labeldrop
|
||||
# regex: cluster
|
||||
# True includes annotation for statefulset that contains hash of corresponding configmap, which will cause pods to restart on configmap change
|
||||
restartPodsOnConfigMapChange: false
|
||||
ports:
|
||||
@ -617,6 +623,9 @@ autorecovery:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
scrapeTimeout: 10s
|
||||
metricRelabelings:
|
||||
# - action: labeldrop
|
||||
# regex: cluster
|
||||
# True includes annotation for statefulset that contains hash of corresponding configmap, which will cause pods to restart on configmap change
|
||||
restartPodsOnConfigMapChange: false
|
||||
ports:
|
||||
@ -704,6 +713,9 @@ broker:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
scrapeTimeout: 10s
|
||||
metricRelabelings:
|
||||
# - action: labeldrop
|
||||
# regex: cluster
|
||||
# True includes annotation for statefulset that contains hash of corresponding configmap, which will cause pods to restart on configmap change
|
||||
restartPodsOnConfigMapChange: false
|
||||
ports:
|
||||
@ -843,6 +855,9 @@ proxy:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
scrapeTimeout: 10s
|
||||
metricRelabelings:
|
||||
# - action: labeldrop
|
||||
# regex: cluster
|
||||
# True includes annotation for statefulset that contains hash of corresponding configmap, which will cause pods to restart on configmap change
|
||||
restartPodsOnConfigMapChange: false
|
||||
# nodeSelector:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user