-
Notifications
You must be signed in to change notification settings - Fork 183
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
Should process.cpu.utilization and system.cpu.utilization be opt-in? #1130
Comments
I support making them opt-in |
there was a semi-related discussion a while back: open-telemetry/opentelemetry-specification#2392 (comment)
|
I have mixed feelings about this tbh. @open-telemetry/semconv-system-approvers any thoughts on this? |
@ChrsMark could you clarify what |
Please check me on this but I'm referring to the delta metric that we can calculate from the cumulative
Where dividing this by If system.cpu.utilization is:
Then
My point point here is to ensure consistency with other metrics like the container's ones: #1128 However at https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/c4bee406f5db233a2bc7f0c69185764fea9fb033/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/ucal/cpu_utilization_calculator.go#L54 I see we don't really divide by the |
I support this. Thanks @ChrsMark! |
We discussed that during today's SIG meeting (1st Aug 2024). Since we report this per core that's why we don't divide by the number of cores (it's actually a division by For processes it's also calculated properly. Divided by number of cores: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/c4bee406f5db233a2bc7f0c69185764fea9fb033/receiver/hostmetricsreceiver/internal/scraper/processscraper/ucal/cpu_utilization_calculator.go#L60-L65 Hence, we are consistent here with other areas like k8s/containers. It's also not a real need to introduce the |
Thanks for the info. I support as well, thanks! |
PR raised: #1308 |
Area(s)
area:system
Is your change request related to a problem? Please describe.
Following up from #647 (comment) we should decide on the requirement level for the
process.cpu.utilization
andsystem.cpu.utilization
. At the moment these arerecommended
metrics but maybe we can consider if those can beopt-in
since both of them can be calculated from their respective*.cpu.time
metric.JVM metrics define the
jvm.cpu.recent_utilization
asrecommended
however reading its description I'm not sure if that one can be derived from the jvm.cpu.time, so that might be a different case./cc @open-telemetry/semconv-system-approvers @braydonk @open-telemetry/semconv-jvm-approvers
Describe the solution you'd like
Having an alignment (if possible) on the requirement level for the
*.cpu.utilization
metrics across SemConv.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: