Monotoring Apache tomcat server with ELK APM

Hello team,

I have elk setup with x-pack features and I am using filebeat as data shipper.

is it possible to enable monitoring in Apache- Tomcat (which is running my java app) with elk APM? if yes which agent should i install?

Hi Ashok,

Application Performance monitoring as the name says is for the Application running on your Server. For Server monitoring, we have Beats framework, which would help you extract all the details of the Apache Tomcat. For example you can try Metricbeat for getting metrics of tomcat server.

APM effectively monitors your application and reports if there are any errors. For Java application you can use our Java Agent and APM Server to send the data to elasticsearch.

Please note that our Java Agent is in Alpha and not GA'ed yet.

References:

  1. https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-getting-started.html
  2. https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-apache.html
  3. https://www.elastic.co/guide/en/apm/get-started/current/index.html
  4. https://www.elastic.co/guide/en/apm/agent/java/current/index.html

Happy to help!

Hello Aravind, Thanks for your response i have installed node.js agent in tomcat folder. it's not collecting any metrics, can you please suggest me in which file should i configure below code to start agent

`/ Add this to the VERY top of the first file loaded in your app
var apm = require('elastic-apm-node').start({
// Set required service name (allowed characters: a-z, A-Z, 0-9, -, _, and space)
serviceName: '',

// Use if APM Server requires a token
secretToken: '',

// Set custom APM Server URL (default: http://localhost:8200)
serverUrl: '',
})`

Hi Ashok,

Again, APM is a solution to monitor your applications. It requires you to add the lines of code in your application's entry point.

For example, if you want to monitor a Java app, you should import that JAR in the application and add relevant lines of code in the application's entry point file like main.java

We have agents for Nodejs, Python, Ruby, Java. I'd advise you to read the relevant` documentation

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.