The Tomcat plugin collects statistics available from the tomcat manager status page from the `http://<host>/manager/status/all?XML=true URL.`
The Tomcat plugin collects statistics available from the tomcat manager status page from the `http://<host>/manager/status/all?XML=true URL.` (`XML=true` will return only xml data).
(`XML=true` will return only xml data). See the [Tomcat documentation](https://tomcat.apache.org/tomcat-9.0-doc/manager-howto.html#Server_Status) for details of these statistics.
See the [Tomcat documentation](https://tomcat.apache.org/tomcat-9.0-doc/manager-howto.html#Server_Status) for details of these statistics.
### Configuration:
### Configuration:
```toml
```toml
# A Telegraf plugin to collect tomcat metrics.
# Gather metrics from the Tomcat server status page.
[[inputs.tomcat]]
[[inputs.tomcat]]
# A Tomcat status URI to gather stats.
## URL of the Tomcat server status
# Default is "http://127.0.0.1:8080/manager/status/all?XML=true".