You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please forgive me if this is a dumb question - I'm still learning my way around metrics in general and Prometheus in particular.
Would it make sense to have, at least as an option, the ability to initialise counter metrics to 0 when they're first set up? As it stands (if my reading of things is correct), they'll return a null value until the first time they're incremented. That leads to a not-entirely-intuitive result when later you're using the increase function in PromQL and the very first event doesn't count because there's no "increase" between null and 1.
The text was updated successfully, but these errors were encountered:
The issue here is it isn't possible to know (at supervisor start) which counters to initialize because you can have arbitrary values in tags, where each new tag value creates a new counter. I'm not sure if sending a 0 event first when encountering the initial 1 for a counter would help in PromQL?
Please forgive me if this is a dumb question - I'm still learning my way around metrics in general and Prometheus in particular.
Would it make sense to have, at least as an option, the ability to initialise counter metrics to 0 when they're first set up? As it stands (if my reading of things is correct), they'll return a null value until the first time they're incremented. That leads to a not-entirely-intuitive result when later you're using the
increase
function in PromQL and the very first event doesn't count because there's no "increase" between null and 1.The text was updated successfully, but these errors were encountered: