apache tomcat logo

Apache Tomcat Telegraf Plugin

apache tomcat logo

Apache Tomcat is an open source Java servlet container that implements several core Java enterprise specs, namely the Java Servlet, JavaServer Pages (JSP), and WebSockets APIs. An Apache Software Foundation project, Tomcat was first released in 1998, just four years after Java itself.

Why use a Telegraf plugin for Apache Tomcat?

Your Tomcat server is an integral part of your web application, so maintaining a performant Tomcat server is key. Monitoring your Tomcat server will ensure that your application responds to requests without significant delays, in addition to identifying any potential errors or memory leaks in your code.

How to monitor Apache Tomcat using the Telegraf plugin

The Apache Tomcat Telegraf plugin collects metrics available from the Tomcat manager status page from the http:///manager/status/all?XML=true URL. (XML=true will return only xml data). This makes it easy to collect Tomcat metrics in InfluxDB to help you understand the behavior and performance of this server.

Configure the Apache Tomcat Telegraf Plugin with the location of your server and authentication information, and it will start collecting data into InfluxDB in no time.

Key Apache Tomcat metrics to use for monitoring

Some of the important Apache Tomcat metrics that you should proactively monitor include information about the Tomcat connectors, and JVM memory usage such as:

Measurements & Fields:

  • tomcat_jvm_memory
    • free
    • total
    • max
  • tomcat_jvm_memorypool
    • max_threads
    • current_thread_count
    • current_threads_busy
    • max_time
    • processing_time
    • request_count
    • error_count
    • bytes_received
    • bytes_sent
  • tomcat_connector
    • max_threads
    • current_thread_count
    • current_thread_busy
    • max_time
    • processing_time
    • request_count
    • error_count
    • bytes_received
    • bytes_sent

Tags:

  • tomcat_jvm_memorypool has the following tags:
    • name
    • type
  • tomcat_connector
    • name

For more information, please check out the documentation.

Project URL   Documentation

Related Resources

Infrastructure and application monitoring

The solution to monitor your entire infrastructure stack, including servers, containers, databases and cloud services.

Linux System Monitoring Template

How to use Linux System Monitoring Template

Tomcat Monitoring Template

How to use the Tomcat Monitoring Template

Scroll to Top