-
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
Add system.cpu.frequency
metric.
#337
Add system.cpu.frequency
metric.
#337
Conversation
Is here something missing? |
I think we need to discuss whether this definition is practical. The library we use on the hostmetrics receiver does not support getting the real-time frequency, only the maximum frequency. See open-telemetry/opentelemetry-collector-contrib#26532 (comment) I have not had time to check whether an alternative exists (the problem seems to be Windows). |
Let's figure out the practicality of implementation first
Hey folks! So since it seems that its not quite straight-forward to collect the current cpu's frequency in Windows maybe we can introduce the This would give us a meaningful attribute for now which comes from |
Makes sense to me. I think the name should end in |
That would be fine but not sure how we would potentially refer to the |
Right... and taken literally the max frequency is not the 'total amount' of frequency in any sense.
Ok then I would go with |
Ive no strong preference. But from the outside I think
Can there be a limit on the frequency which is lower then max? Or is there no way to recognize this and a limit would always be max? |
So based on https://www.kernel.org/doc/Documentation/cpu-freq/user-guide.txt So from what I can understand If that's correct then maybe this is not a metric but more a Update:
Based on this I would suggest using |
dd71fff
to
d5cd8c7
Compare
system.cpu.frequency
metric.system.cpu.frequency.max
metric.
system.cpu.frequency.max
metric.system.cpu.frequency
metric.
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
af7ae48
to
f914169
Compare
Hey @frzifus @mx-psi ! The collector's implementation PR is open for review: open-telemetry/opentelemetry-collector-contrib#27445. It seems that we can add support for reporting the current cpu in Linux systems and provide the option for adding support for more platforms in the future accordingly. Hence I have updated this PR to introduce the |
d4f011a
to
9378a05
Compare
From the WG meeting: how does this metric compare with https://github.com/open-telemetry/semantic-conventions/blob/main/docs/system/hardware-metrics.md#hwcpu---physical-processor-metrics ? In particular:
For reference, the metrics do not seem to be used https://github.com/search?q=org%3Aopen-telemetry%20hw.cpu&type=code. cc @arminru as the original author of the document in case you have more context. |
Thanks for summarizing this @mx-psi! One problem I see with |
Hey @mx-psi @ChrsMark! I reviewed the PR back then and suggested changes which were applied and thus show up in the co-authored-by field but the original proposal came from @bertysentry, so I'll forward the questions to him instead. |
@bertysentry do you have any content to share here? Would that make sense to add @open-telemetry/semconv-system-approvers thoughts on this? |
From the WG meeting(Oct 18th):
I will update the PR accordingly. |
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Sorry for the late reply (I'm on vacation!) It is true that WRT the deprecation of NB: The challenge with processors is that the technology evolves quite rapidly, and some metrics that sound logical today will be meaningless in a few years. Example: Intel's RAPL. |
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Fixes #130
Changes
This PR adds the remaining of the CPUINFO data described at #130. The respective CPU frequency is added as a metric, called
system.cpu.frequency.max
based on open-telemetry/opentelemetry-collector-contrib#26532 (comment). See also #337 (comment) for more details.Example:
On a Linux machine execute the following:
As we can see the provided frequencies are per CPU and hence we distinguish this by using the
system.cpu.logical_number
metric attribute.Collector's implementation PR: open-telemetry/opentelemetry-collector-contrib#27445
Merge requirement checklist