-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[hostmetrics] change cpu.load.average metric units #29915
Conversation
050b93a
to
a13993b
Compare
"default unit 1" it is default for all the metrics not only for utilization. See https://github.com/open-telemetry/semantic-conventions/blob/b2e2c64b3f16b3d70b867cbaefc01936f23c1f4c/docs/general/metrics.md?plain=1#L195 and can read also https://unitsofmeasure.org/ucum. |
@dmitryax we can have it as |
My instinct is probably not?
I am not sure how to handle this scenario as this is a strange metric. If I were to suggest something now, I would say it should be its own unit |
Linux Load averages don't measure CPU, I've seen load averages in 1000s and stuff like that, when there a lot of processes in D state, due to waiting for i/o or release of kernel lock. Good article about this is -> https://tanelpoder.com/posts/high-system-load-low-cpu-utilization-on-linux/ Also found a good post that explain what actually Linux Load Averages measure -> https://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html
So the unit here seems to be threads? For Windows, we seem to compute the average using Processor Queue Length, which is:
Unit also seems to be threads. So my suggestion for unit is WDYT? |
a13993b
to
fc8b4ed
Compare
fc8b4ed
to
e563c29
Compare
+1 to doing |
Thanks for the additional documentation, it seems I misunderstood what the load average really meant.
* The unit there is |
I don't understand the issue with clashing units? Why it's an issue? Taking simple example if one metric gives my count of current threads running, the unit is Ref: https://stats.stackexchange.com/questions/187918/does-average-have-units |
Maybe it's fine then. I can't see any other example in semantic conventions of this case ever occurring (using the same unit for a specific number or average) but if that's not against the rules then |
FYI I've changed the unit to |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{thread}
sounds good to me
) **Description:** The system.cpu.load_average.5m uses 1 as unit, which is reserved for utilization metrics - https://opentelemetry.io/docs/specs/semconv/general/metrics/#instrument-units CPU Load Average does not track utilization and can go above **Link to tracking Issue:** open-telemetry#29914
Description:
The system.cpu.load_average.5m uses 1 as unit, which is reserved for utilization metrics - https://opentelemetry.io/docs/specs/semconv/general/metrics/#instrument-units
CPU Load Average does not track utilization and can go above
Link to tracking Issue:
#29914
Testing:
Documentation: