mirror of
https://github.com/block/buzz.git
synced 2026-10-31 14:31:02 +00:00
Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
20 lines
639 B
YAML
20 lines
639 B
YAML
{{- if .Values.podMonitor.enabled }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PodMonitor
|
|
metadata:
|
|
name: {{ include "push.name" . }}
|
|
labels: {{- include "push.runtimeLabels" . | nindent 4 }}
|
|
{{- with .Values.podMonitor.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
matchLabels: {{- include "push.runtimeLabels" . | nindent 6 }}
|
|
podMetricsEndpoints:
|
|
# Scrape the private health port only; /metrics is never on the public Service.
|
|
- port: health
|
|
path: /metrics
|
|
interval: {{ .Values.podMonitor.interval }}
|
|
scrapeTimeout: {{ .Values.podMonitor.scrapeTimeout }}
|
|
{{- end }}
|