Apache Tomcat
OpsVerse ObserveNow can pull logs and metrics from Apache Tomcat using the jmx_exporter that can be configured using the OpsVerse Agent. Please follow the steps below to configure the agent to monitor your Tomcat installation
Prerequisite: OpsVerse ObserveNow Agent installed on the VM running Tomcat following the steps mentioned here
Assuming you have the ObserveNow agent up and running on the VM, you can follow the nest steps to configure Tomcat observability
Open /etc/opsverse/exporters/jmx/config.yaml and add the following config into it:
In the same directory where catalina.sh is, create a file named setenv.sh (usually /opt/tomcat/bin/) and add the following into the directory
Ensure the file is executable using the command chmod +x setenv.sh
Restart Tomcat and in a few seconds you should start seeing Tomcat metrics in the Metrics Explorer in your ObserveNow Grafana
To pull Apache Tomcat logs into ObserveNow, you only need to add a new block to the agent config. Open up /etc/opsverse/agent-config.yaml and under logs -> configs -> scrape_ configs add the following block:
Restart Observe Agent with sudo systemctl restart opsverse-agent and you should see logs in your ObserveNow Grafana under the Logs datasource with the label job = tomcat