helm-charts/matrix-sliding-sync/templates/servicemonitor.yaml

19 lines
525 B
YAML
Raw Permalink Normal View History

2024-02-20 23:43:46 +01:00
{{- if .Values.prometheus.servicemonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "matrix-sliding-sync.fullname" . }}
labels:
{{- include "matrix-sliding-sync.labels" . | nindent 4 }}
{{- with .Values.prometheus.servicemonitor.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- port: metrics
path: "/metrics"
selector:
matchLabels:
{{- include "matrix-sliding-sync.selectorLabels" . | nindent 6 }}
{{- end }}