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

Add Meter for process CPU time #4498

Closed
simonzn opened this issue Dec 19, 2023 · 1 comment · Fixed by #4499
Closed

Add Meter for process CPU time #4498

simonzn opened this issue Dec 19, 2023 · 1 comment · Fixed by #4499
Labels
enhancement A general enhancement instrumentation An issue that is related to instrumenting a component module: micrometer-binders
Milestone

Comments

@simonzn
Copy link
Contributor

simonzn commented Dec 19, 2023

Please describe the feature request.
I would like to have a meter for the accumulated CPU time used by a JVM process.

Rationale
We use the accumulated CPU time in derived metrics; e.g., we derive the percentage of time spent with garbage collection from the accumulated CPU time and the GC times.

Additional context
We currently add the meter in our applications, but we think it would be generally useful.

@jonatan-ivanov jonatan-ivanov changed the title Add Meter for Accumulated CPU Time Add Meter for process CPU time Feb 29, 2024
@jonatan-ivanov jonatan-ivanov added enhancement A general enhancement instrumentation An issue that is related to instrumenting a component module: micrometer-binders and removed waiting-for-triage labels Feb 29, 2024
@jonatan-ivanov jonatan-ivanov added this to the 1.13.0-M2 milestone Feb 29, 2024
jonatan-ivanov added a commit that referenced this issue Feb 29, 2024
Closes #4498

---------

Co-authored-by: Jonatan Ivanov <jonatan.ivanov@gmail.com>
@shakuzen
Copy link
Member

shakuzen commented Mar 1, 2024

e.g., we derive the percentage of time spent with garbage collection from the accumulated CPU time and the GC times.

FYI, this is something we try to offer with the JvmHeapPressureMetrics binder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A general enhancement instrumentation An issue that is related to instrumenting a component module: micrometer-binders
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants