最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

promql - How to ignore duplicate metrics on prometheus dashboard? - Stack Overflow

programmeradmin5浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论