Files
movienight-backend/deploy/helm/movienight/templates/observability/scrape.yaml
T
ITQ af20c0511a
CI / TruffleHog Secret Scan (pull_request) Canceled after 0s
CI / Build & Test (pull_request) Canceled after 0s
CI / Docker (pull_request) Canceled after 0s
CI / Notify Main Build (pull_request) Canceled after 0s
CI / Release (pull_request) Canceled after 0s
feat(helm/movienight): added scrape crd
2026-08-01 17:14:02 +03:00

35 lines
939 B
YAML

{{- if .Values.observability.enabled }}
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: {{ include "movienight.fullname" . }}-scrape
labels:
{{- include "movienight.componentLabels" (dict "root" . "component" "scrape") | nindent 4 }}
{{- with .Values.observability.scrape.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.global.annotations }}
annotations:
{{- with .Values.global.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "movienight.componentSelectorLabels" (dict "root" . "component" "backend") | nindent 4 }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
endpoints:
- port: management
path: /actuator/prometheus
interval: 10s
podTargetLabels:
- app.kubernetes.io/component
- app.kubernetes.io/instance
{{- end }}