Jagger
|
Section describes how to start monitoring agents to collect system and JVM metrics
Back to Collecting system and JVM metrics
Agent - stand alone client application, started on SUT site to collect monitoring metrics. Agent will connect to
Jagger server node (COORDINATION_SERVER), register there, post collected data and follow commands, received from server.
To make Jagger server ready for agent(s) connection set properties in corresponding environment.properties
file
There are some more properties for monitoring setup. You can find them here: Jagger configuration properties
After you test program compilation, you will get .zip file in target folder, containing compiled code to start agent.
Copy this file to SUT site and unzip it there.
chassis.coordination.http.url
- URL of Jagger server node jmx.enabled
- flag to enable/disable JMX monitoring agent.name
- name of agent. Will be displayed in all reports jmx.enabled
- flag to enable/disable JMX monitoring jmx.services
- host:port of JMX service(s) Following section is important if you want to monitor application running with JBoss 6 server or later version.
Section is describing feature available starting from Jagger 1.2.4
Some day JBoss Application Server decided to introduce it's own JMX. Starting from that time it became tricky
to connect to JBoss JMX MBeanServer from normal JConsole. Jagger agents faced same problem.
Below is example how to monitor application running with JBoss EAP 6.0.0 by Jagger agent.
1.First your project will require new dependencies in pom.xml file. Dependencies below are for JBoss 6.0.
Other JBoss versions will require other versions of libraries. Smile
2.Second during agent start you will require to set new property to specify JBoss specific JMX service URL
jmx.url.format
- new property available since Jagger 1.2.4 - JMX service URL format for JBoss
More reading:
JBoss Using jconsole to connect to JMX on AS7
JBoss JMX subsystem configuration