Skip to content

process.uptime should be added in hostmetrics/process scraper #36667

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

Closed
shikhar1987 opened this issue Dec 4, 2024 · 3 comments · Fixed by #37492
Closed

process.uptime should be added in hostmetrics/process scraper #36667

shikhar1987 opened this issue Dec 4, 2024 · 3 comments · Fixed by #37492

Comments

@shikhar1987
Copy link

Component(s)

No response

Is your feature request related to a problem? Please describe.

There is no metric which captures the uptime of processes running on a host.

Describe the solution you'd like

There should be a metric like process.uptime which should display the pid, elapsed time and command as dimensions.

Describe alternatives you've considered

Currently we use telegraf to capture the output of ps -eo pid,etime,comm.

Additional context

No response

@shikhar1987 shikhar1987 added enhancement New feature or request needs triage New item requiring triage labels Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

Pinging code owners for receiver/hostmetrics: @dmitryax @braydonk. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triaged' to set the priority and remove the needs-triaged label.

@braydonk
Copy link
Contributor

braydonk commented Dec 4, 2024

Since this now exists in our semantic conventions we can add it in the process scraper. I will find some time to do this soon, unless anyone else would like to contribute it.

@shikhar1987
Copy link
Author

Hi @braydonk / @dmitryax ,
Is there a possibility for anyone of you to have a look at this one?

chengchuanpeng pushed a commit to chengchuanpeng/opentelemetry-collector-contrib that referenced this issue Feb 8, 2025
#### Description
Adding new metric into hostmetric process scraper to track process
uptime

#### Link to tracking issue
Fixes
open-telemetry#36667

#### Testing

Added tests to validate coverage.

#### Documentation

Added as part of mdatagen
zeck-ops pushed a commit to zeck-ops/opentelemetry-collector-contrib that referenced this issue Apr 23, 2025
#### Description
Adding new metric into hostmetric process scraper to track process
uptime

#### Link to tracking issue
Fixes
open-telemetry#36667

#### Testing

Added tests to validate coverage.

#### Documentation

Added as part of mdatagen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants