Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels
Activity