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_memorypoolhas the following tags: