Files
devops-infra-helm-charts-gcp/helm-templates/mimir-distributed/charts/rollout-operator/templates/servicemonitor.yaml
T
2026-08-26 03:39:42 +05:30

37 lines
1.0 KiB
YAML

{{- if .Values.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "rollout-operator.fullname" . }}
{{- with .Values.serviceMonitor.namespace }}
namespace: {{ . }}
{{- end }}
labels:
{{- include "rollout-operator.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.serviceMonitor.namespaceSelector }}
namespaceSelector:
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "rollout-operator.selectorLabels" . | nindent 6 }}
endpoints:
- port: http-metrics
{{- with .Values.serviceMonitor.interval }}
interval: {{ . }}
{{- end }}
{{- with .Values.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
relabelings:
{{- with .Values.serviceMonitor.relabelings }}
{{- toYaml . | nindent 8 }}
{{- end }}
scheme: http
{{- end -}}