-
Notifications
You must be signed in to change notification settings - Fork 722
process runtime gc count should not have bytes metrics #3549
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
Comments
I would like to implement this style: https://github.com/open-telemetry/semantic-conventions/blob/2bc97890c1ad82232745b4dd74fd3144476b6a5c/docs/runtime/cpython-metrics.md it also aligns with what the prometheus client does. But i would like to get an approval of a core contributor before starting the work, because i want to get it merged. especially due to the fact that it will break the existing metrics. |
@xrmx since you introduced those metrics to semconv: I don't mind adding them here while keeping the "old one", similar to what was done for |
Yeah, I forgot to comment there about using the |
@emdneto , please let me know if you are planning to work on this, if not i will try to get some time next week to work on this issue. |
Please feel free to open the PR |
Describe your environment
Not relevant
What happened?
In
opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Line 460 in a912c9e
the unit is bytes. This results in a metrics in prometheus called: process_runtime_cpython_gc_count_bytes_total
but this is incorrect. we are counting gc cycles per generation through
Steps to Reproduce
just see the code
Expected Result
not having a bytes suffix.
it should be something like process_runtime_cpython_gc_count_total
Actual Result
process_runtime_cpython_gc_count_bytes_total
Additional context
the change would break lots of stuff and i am not sure people wil be happy.
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: