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

Metrics for a specific process #925

Closed
kenytux opened this issue Mar 13, 2024 · 6 comments
Closed

Metrics for a specific process #925

kenytux opened this issue Mar 13, 2024 · 6 comments

Comments

@kenytux
Copy link

kenytux commented Mar 13, 2024

Hello,
I want to get metrics from a specific java application process (Like memory and cpu usage)
Does it possible?

@dhoard
Copy link
Collaborator

dhoard commented Mar 13, 2024

The exporter will provide access to JMX metrics exposed from the Java application process, but you still need/should do application monitoring at the OS level.

@kenytux
Copy link
Author

kenytux commented Mar 13, 2024

For example, if I have an application called myapp, can I have it's memory usage (Like 8gb for myapp)?
Iif it is how I do it?

@dhoard
Copy link
Collaborator

dhoard commented Mar 13, 2024

Yes. Here is a list of built-in Java MBeans:

https://docs.oracle.com/javase/8/docs/api/java/lang/management/PlatformManagedObject.html

@kenytux
Copy link
Author

kenytux commented Mar 13, 2024

Thank you
I will take a look

@kenytux
Copy link
Author

kenytux commented Mar 13, 2024

Can you help me more?

@dhoard
Copy link
Collaborator

dhoard commented Mar 13, 2024

The documentation (README.md) describes the installation and configuration in general terms, but the nuances are related to your specific application, deployment environment, etc.

I would start with "Running the Agent" https://github.com/prometheus/jmx_exporter?tab=readme-ov-file#running-the-java-agent.

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

No branches or pull requests

2 participants