Closed venkatbvc closed 2 months ago
Hello! Maybe you can use vmagent cr in victoria-metrics-k8s-stack, operator will help build this parameter.
VictoriaMetrics already supports extraction of -promscrape.cluster.memberNum
from pod name for statefulsets and it's already implemented in victoria-metrics-agent helm chart with
statefulset:
enabled: true
clusterMode: true
In VmAgent chart:
Currently k8s doesn't support providing statefulset ordinal index to the pod. A wrapper script needs to be added before starting vmagent. This will not work if distroless images are used.
Will it be better to take hostname and get the ordinal number in k8s environments?