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

Trying to add the labels for JVM metrics #56

Open
hughdhillon opened this issue Jul 7, 2021 · 1 comment
Open

Trying to add the labels for JVM metrics #56

hughdhillon opened this issue Jul 7, 2021 · 1 comment

Comments

@hughdhillon
Copy link

I was trying to add the labels for JVM metrics but not sure how to add it.

The original metrics output look like this by using code.

# HELP jvm_memory_bytes_max Max (bytes) of a given JVM memory area.
# TYPE jvm_memory_bytes_max gauge
jvm_memory_bytes_max{area="heap",} 2.863661056E9
jvm_memory_bytes_max{area="nonheap",} -1.0

But I would like to see something like this (i.e: service="XXXX",area="XXXX")

# HELP jvm_memory_bytes_max Max (bytes) of a given JVM memory area.
# TYPE jvm_memory_bytes_max gauge
jvm_memory_bytes_max{area="heap",service="XXXX",area="XXXX"} 2.863661056E9
jvm_memory_bytes_max{area="nonheap",service="XXXX",area="XXXX"} -1.0
@hughdhillon
Copy link
Author

@xsc : Any help would be appreciated. Thank you.

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

1 participant