kubernetes 如何为vmagent收集的所有指标添加标签?

gk7wooem  于 2023-04-29  发布在  Kubernetes
关注(0)|答案(1)|浏览(272)

任务是将永久标签k8s_cluster=state添加到帮助图表victoria-metrics-agent,我尝试通过extraLabels添加它,但它仅添加到pod,deployment等。vmagent I use helm chart https://github.com/VictoriaMetrics/helm-charts

xvw2m8pv

xvw2m8pv1#

您是否尝试过使用以下标志配置vmagent:

/path/to/vmagent -remoteWrite.label=k8s_cluster=state ...

https://docs.victoriametrics.com/vmagent.html#adding-labels-to-metrics

相关问题