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

How to monitor summary metrics using JMX exporter #809

Open
anurag-appperfect opened this issue Jun 2, 2023 · 4 comments
Open

How to monitor summary metrics using JMX exporter #809

anurag-appperfect opened this issue Jun 2, 2023 · 4 comments

Comments

@anurag-appperfect
Copy link

For some metrics, it would be useful if we could see a few different percentiles (75, 95 and 99, for example) for metrics, which have constantly a lot of samples in short time periods. Can anybody help me to configure my java service to expose percentile metrics using jmx exporter ?

@dhoard
Copy link
Collaborator

dhoard commented Jun 2, 2023

The exporter only exposes metrics as exposed by JMX. If you want/need histograms, you would need to either create JMX MBeans that expose the percentiles or do it in in Prometheus (time series database.)

@anurag-appperfect
Copy link
Author

Thank you for your answer, can you tell me a bit more about how we can achieve this in prometheus ?

@dhoard
Copy link
Collaborator

dhoard commented Jul 26, 2023

Typically you would use a Histogram to instrument your code.

HistogramTest is a good example of usage.

@msistla96
Copy link

I'd like to also be able to define MBeans that captures Summary metrics. Are we able to define this in the JMX configuration? I didn't see any examples related to Summary or Histogram.

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

3 participants