Files
devops-infra-helm-charts-gcp/helm-templates/victoria-metrics-mcp/templates/scrape.yaml
T
2026-08-26 03:39:42 +05:30

22 lines
553 B
YAML

{{- if .Values.scrape.enabled }}
{{- $ctx := dict "helm" . }}
{{- $fullname := include "vm.fullname" $ctx }}
{{- $ns := include "vm.namespace" $ctx }}
---
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
labels: {{ include "vm.labels" $ctx | nindent 4 }}
name: {{ $fullname }}
namespace: {{ $ns }}
spec:
endpoints:
- path: /metrics
port: http
namespaceSelector:
matchNames:
- {{ include "vm.release" $ctx }}
selector:
matchLabels: {{ include "vm.labels" $ctx | nindent 6 }}
{{- end }}