admin管理员组

文章数量:1402828

I have some metrics

selection_cnt_success_by_source{container="selections", ims_system_id="5597830", instance="10.220.23.148:5006", job="selections", namespace="prod-dmz-sgm", pod="selections-5569d9bf77-qrfpq", prometheus="prod-dmz-sgm/kubernetes-vmagent", service="selections", source="selection_cnt_success_by_source_total"}
368

selection_cnt_success_by_source{container="selections", ims_system_id="5597830", instance="10.220.23.148:5006", job="selections", namespace="prod-dmz-sgm", pod="selections-5569d9bf77-qrfpq", prometheus="prod-dmz-sgm/kubernetes-vmagent", service="selections", source="selection_cnt_success_scheduler"}
74

Microservice Selection returns the values ​​of the metrics that Victoria Agent takes and sends to the Prometneus store. Microservice Selection deployed in k8s and if we redeployed in metrics to change value in label POD.

was

pod="selections-5569d9bf80-qrfpq"

became

pod="selections-5569d9bf77-qrfpq"

After on prometheus dashboard we have duplicate metrics.

本文标签: promqlHow to ignore duplicate metrics on prometheus dashboardStack Overflow