fix non counter warning on series without metric name#12922
fix non counter warning on series without metric name#12922yeya24 wants to merge 1 commit intoprometheus:mainfrom
Conversation
Signed-off-by: Ben Ye <benye@amazon.com>
|
I agree that we should not issue the info-level warning for an unnamed metric, mostly because it is possible to write a query where an unnamed metric can still be seen as a counter. However, in your case, i.e. Note that there is already #12945 for another case where we issue this info-level warning falsely. |
Thanks for the reply. I agree with you. The query might not be a good example. Just want to show that this warning might be wrong for those unamed metrics. |
|
Yes, definitely. We should not create the annotation if |
|
So we had a bunch of people submitting fixes for this. A fix for the issue addressed by this PR has already been merged (without tracking who submitted what first, please don't be mad at me because of that). Therefore, I'll close this. Thanks for your contribution anyway. |
When I run a nested subquery like this
rate(sum by (series) http_requests_total[5m:1m]), I got a warning of possible non counter.It looks like the check doesn't consider the case where metric name label is aggregated away.