22 lines
553 B
YAML
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 }}
|