Hello Team,
I really enjoyed working with Metricbeat and jolokia together to get my application Mbeans.
Below is my module configuration from metricbeat.yml
In this I have one static Mbean name which will never get changes but I have a dynamic Mbean : 'com.app:name=JobDetailedDiagnostics-APT/KMN/FACILITY' which gets changed everytime I restart my server.
Below are my questions:
-
I understand Jolokia exposes dynamically created Mbeans but from metricbeat side, how do i configure dynamically created Mbeans?
-
I have around 100+ Mbeans. I want to push all the Mbean information. So is there any way like jmx.mappings: all so that it would fetch all the available Mbeans?
(In this case I dont need to worry about Dynamically created Mbeans too as everything will be pushed regardless of dynamic or static)
- module: jolokia
metricsets: ["jmx"]
period: 10s
hosts: ["http://localhost:8280/jolokia-war-1.6.0/"]
namespace: "n4metrics"
username: "tomcat"
password: "******"
jmx.mappings:- mbean: 'com.app:name=SystemHealthDiagnostics'
attributes:- attr: ActiveSessions
field: ActiveSessions - attr: NumberOfSlowQueries
field: NumberOfSlowQueries - attr: ActiveDatabaseConnections
field: ActiveDatabaseConnections - attr: SlowQueriesTimeFrameInMillis
field: SlowQueriesTimeFrameInMillis - attr: SystemActive
field: SystemActive - attr: Description
field: Description
- attr: ActiveSessions
- mbean: 'com.app:name=JobDetailedDiagnostics-APT/KMN/FACILITY'
attributes:- attr: LocallyScheduledJobs
field: LocallyScheduledJobs - attr: LocallyExecutingJobs
field: LocallyExecutingJobs - attr: AllDiagnostics
field: AllDiagnostics - attr: LocallyScheduledJobCount
field: LocallyScheduledJobCount - attr: LocalExecutingJobCount
field: LocalExecutingJobCount - attr: MaxThreadPoolCount
field: MaxThreadPoolCount - attr: Description
field: Description
..........
..........
..........
- attr: LocallyScheduledJobs
- mbean: 'com.app:name=SystemHealthDiagnostics'