Hello
I'm contacting you about collecting metrics for a java tomcat application.
We want to collect metrics for our application and we need to put it on the ELK stack for graphing !!
here below many config :
==> on my tomcat server :
-- jolokia running on port 8778
-- jolokia.yml :
- module: jolokia
metricsets: ["jmx"]
hosts: ["localhost:8778"]
period: 10s
namespace: "jvm"
jmx.mappings:- mbean: "java.lang:type=Memory"
attributes:- attr: "HeapMemoryUsage"
field: "memory.heap" - attr: "NonHeapMemoryUsage"
field: "memory.nonheap"
- attr: "HeapMemoryUsage"
- mbean: "java.lang:type=Threading"
attributes:- attr: "ThreadCount"
field: "thread.count"
event: threads - attr: "DaemonThreadCount"
field: "thread.daemon"
event: threads
jmx.application:
jmx.instance:
- attr: "ThreadCount"
- mbean: "java.lang:type=Memory"
-- metricbeat.yml :
output.elasticsearch:
hosts: ["server_elastic:9200"]
the question is, we have to create a configuration on logstash? pipelines for example? or is the output to elasticsearch enough?
Thank you for your answer
regards
sai