-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0 defaults for counters #21
Comments
So prometheus spec mandates label-less metrics to be set to 0 by default. But metrics with labels shouldn't be initialized by prometheus.erl itself. So maybe adding reasonable initialization for known labels makes sense... https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics |
Do you mean initializing as 0 for known labels like the
|
yes, all these |
I think the issue I've been dealing with for graphing in grafana and bother @deadtrickster with :) is resolved by metrics like
http_requests_failed_total
were exported as 0 instead of being left out when they haven't been incremented.I'll look into how to accomplish this, but opening the issue in case someone knows if this is simply configurable with
prometheus.erl
or not.The text was updated successfully, but these errors were encountered: