admin管理员组文章数量:1332896
Here’s the translation of your question for Stack Overflow:
I have a Prometheus-related question.
I expect the method
label to appear consistently as GET
and POST
:
acs_go_http_requests_in_flight{method="GET",route="/ads/v1/mobile_leaderboard"} 0
acs_go_http_requests_in_flight{method="POST",route="/ads/v1/mobile_leaderboard"} 0
acs_go_http_requests_in_flight{method="GET",route="/ads/v1/promo_banner"} 0
acs_go_http_requests_in_flight{method="POST",route="/ads/v1/promo_banner"} 0
... and so on
However, in reality, the method
label appears inconsistently, sometimes interchanging GET
and POST
. Occasionally, it even shows as GETT
:
acs_go_http_requests_in_flight{method="GETT",route="/ads/v1/promo_banner"} 0
Here is a link to the relevant code:
middleware.go#L85-L121
I’ve seen a similar error message before, but I don’t think I’m registering the metric multiple times:
An error has occurred while serving metrics:
was collected before with the same name and label values
What could be causing this issue in my code?
本文标签:
版权声明:本文标题:go - Prometheus Metric Label Inconsistency: was collected before with the same name and label values - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742316224a2451869.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论