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 custom label(s) to JVM metrics #137

Open
dmbrazhnikov opened this issue Dec 16, 2024 · 1 comment
Open

Add custom label(s) to JVM metrics #137

dmbrazhnikov opened this issue Dec 16, 2024 · 1 comment

Comments

@dmbrazhnikov
Copy link

Hi! Could you please explain is there any way to add custom label(s) to native JVM metrics (jvm_*)? Maybe override via listener configuration or something like that. It could be quite useful because I want my Jmeter to write it's metrics in the same VictoriaMetrics tenant as some other Java apps do, so it'll be good to separate metrics from different sources to avoid mish-mash.

@johrstrom
Copy link
Owner

As of right now, I don't believe you can. Those metrics are coming from the prometheus java library itself. We (this library) can instantiate the objects, but I'm not 100% sure from reading these docs that it's possible to override their metric names.

https://prometheus.github.io/client_java/instrumentation/jvm/

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

No branches or pull requests

2 participants