Monitoring Metrics using JMX

JMX tools can be used to fetch ATSD metrics, for example: JConsolejmxterm, or any other application that support JMX.

Setup JMX in ATSD

In /etc/hosts change atsd_hostname to atsd_ip atsd_hostname where atsd_ip is the ip v4 address of the ATSD host.

Configure the JMX username and password in two separate files located in the /opt/atsd/atsd/conf/ directory: jmx.access and jmx.password

Add the following lines to the /opt/atsd/atsd/conf/ file:


Restart ATSD:

/opt/atsd/bin/ stop
/opt/atsd/bin/ start

Now you can access ATSD on service:jmx:rmi:///jndi/rmi://atsd_ip:1099/atsd, with the username and password established earlier in the guide.

Connect to JMX Server

Uncomment JMX settings in the /opt/atsd/atsd/conf/ file:

  • set to local ip
  • set jmx.access.file and jmx.password.file

Now you can access ATSD from a remote JMX client on: service:jmx:rmi:///jndi/rmi://{ip}:1099/jmxrmi