Small question on how to build visual and insight on JVM buffer_total_capacity_bytes and jvm_buffer_memory_used_byte please.
Setup, I have a SpringBoot Webflux app, nothing really extraordinary. I bring in the Spring Boot Actuator, Micrometer and Prometheus dependencies.
The app has out of the box metrics for buffer_total_capacity_bytes and jvm_buffer_memory_used_bytes in JVM, which I think is very cool.
I also believe those metrics contains tremendous information.
Unfortunately, I believe not to understand Grafana or the metrics itself to fully unleash its potential.
The metrics are : Not knowing how to properly use them, I use those very basic noob queries:
jvm_buffer_memory_used_bytes{_ns_="my_namespace",cluster=~”my_cluster"}
jvm_buffer_total_capacity_bytes{_ns_="my_namespace",cluster=~”my_cluster"}
And with those, I do get some results back. The thing is, I just see two flat lines in which no further insights or action can be taken.
What is the proper way to use those metrics and what is wrong with my current queries as there is a gap between now and meaningful metrics.