I need to monitor a Tomcat application and deployed the jmx_exporter with the
tomcat.yml sample file. I'm able to monitor the memory used and also would like to monitor the garbage collection, threads and classes, but I don't know how to go about it. Can someone advise please?
- alert: JvmMemoryWarning
expr: jvm_memory_bytes_used{area="heap"} / jvm_memory_bytes_max{area="heap"} * 100 > 80
for: 5m
labels:
severity: warning
annotations:
summary: "JVM memory filling up on {{ $labels.instance }}"
description: "JVM memory is over 80%."