Skip to content

Revert cpu.* metrics to system.cpu.* #2295

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

braydonk
Copy link
Contributor

@braydonk braydonk commented May 22, 2025

Related to #1873

Changes

In #1873 we decided that these metrics should move back to the system namespace to stay consistent with similar per-device-type metrics in the system namespace such as disk and network.

Merge requirement checklist

In open-telemetry#1873 we decided that these metrics should move back to the `system`
namespace to stay consistent with similar per-device type metrics in the
`system` namespace such as `disk` and `network`.
@@ -33,29 +33,7 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `cpu.time` | Counter | `s` | Seconds each logical CPU spent on each mode | ![Development](https://img.shields.io/badge/-development-blue) | |

Copy link
Contributor

@lmolkova lmolkova May 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please update md to generate correct metrics here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there are no more cpu.* metrics, I've removed this document in f5597bc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have system.cpu.time metrics somewhere in markdown? It doesn't seem so

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in f5597bc

Copy link
Contributor

@lmolkova lmolkova May 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean we should add system.cpu.time | utilization | frequency here https://github.com/open-telemetry/semantic-conventions/blob/main/docs/system/system-metrics.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

7 participants