Monitoring Tomcat and Alerting

36 views
Skip to first unread message

Juan Rosero

unread,
Jun 2, 2020, 4:56:56 AM6/2/20
to Prometheus Users
Hello,

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%."

Thank you,
Reply all
Reply to author
Forward
0 new messages