Skip to content
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

[receiver/hostmetrics] Add optional metric process.cpu.utilization #14539

Conversation

andrzej-stencel
Copy link
Member

Description:

This pull request adds an optional metric named process.cpu.utilization, as described in the semantic conventions, to the metrics scraped by the process scraper of the hostmetrics receiver.

Link to tracking Issue:

#14084

Context:

This metric has an equivalent in Telegraf as procstat.cpu_usage.

@andrzej-stencel andrzej-stencel force-pushed the add-process-cpu-utilization-metric branch 2 times, most recently from c0c00f4 to 89deabe Compare October 3, 2022 10:48
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 19, 2022
@andrzej-stencel andrzej-stencel force-pushed the add-process-cpu-utilization-metric branch 4 times, most recently from 1c72e86 to f91464e Compare October 19, 2022 12:51
@dmitryax
Copy link
Member

and PTAL at failing test

@andrzej-stencel andrzej-stencel force-pushed the add-process-cpu-utilization-metric branch 2 times, most recently from 0e4d22e to 4856f29 Compare October 21, 2022 10:21
@andrzej-stencel
Copy link
Member Author

Thank you @dmitryax for the review comments 🙏 keep them coming 🙂

@andrzej-stencel andrzej-stencel force-pushed the add-process-cpu-utilization-metric branch from 205c4fa to 487d87a Compare October 24, 2022 09:28
@andrzej-stencel andrzej-stencel force-pushed the add-process-cpu-utilization-metric branch from 487d87a to 24f370c Compare November 7, 2022 13:11
@andrzej-stencel
Copy link
Member Author

andrzej-stencel commented Nov 7, 2022

@dmitryax please take a look at my replies 1, 2 to your comments above.

@andrzej-stencel
Copy link
Member Author

andrzej-stencel commented Nov 15, 2022

Rebased again. Not sure why the exporter tests failed on Windows, I don't think it's related to this change.

@dmitryax can this be merged?

@dmitryax
Copy link
Member

@astencel-sumo I did some changes to the mdatagen tool. Can you please rebase and run make generate?

This metric is described in [semantic conventions](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.13.0/specification/metrics/semantic_conventions/process-metrics.md),
but hasn't been exposed until now.

This metric has an equivalent in Telegraf as `procstat.cpu_usage`.
@andrzej-stencel
Copy link
Member Author

@astencel-sumo I did some changes to the mdatagen tool. Can you please rebase and run make generate?

Done 👍

@andrzej-stencel andrzej-stencel changed the title [receiver/hostmetrics] Add process.cpu.utilization metric [receiver/hostmetrics] Add optional metric process.cpu.utilization Nov 30, 2022
@dmitryax dmitryax merged commit d4deaac into open-telemetry:main Nov 30, 2022
@andrzej-stencel andrzej-stencel deleted the add-process-cpu-utilization-metric branch December 1, 2022 19:48
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
…pen-telemetry#14539)

[receiver/hostmetrics] Add `process.cpu.utilization` metric

This metric is described in [semantic conventions](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.13.0/specification/metrics/semantic_conventions/process-metrics.md),
but hasn't been exposed until now.

This metric has an equivalent in Telegraf as `procstat.cpu_usage`.
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants