- URL/IP of the SixthSense collector (your tenant URL which will be provided by Customer Support).
- Access token from the SixthSense portal.
- SixthSense JMX Agent. (Requires JRE 1.8 and above)
- JMX host and port details of ActiveMQ Artemis.
Enabling ActiveMQ Monitoring
SixthSense agent will remotely monitor ActiveMQ. The agent will run as a separate process and will connect to the JMX port exposed by ActiveMQ for fetching the metrics. The following procedure helps you enable ActiveMQ monitoring.
- Enabling remote JMX support in ActiveMQ through environment variables/JVM args. For more information, see Enabling JMX support in ActiveMQ.
- (Optional) Enabling authentication on the port exposed by ActiveMQ for JMX remote monitoring. For more information, see Enabling authentication on port exposed.
- Download the SixthSense Agent. For more information, see Downloading the agent
- Configure and run the SixthSense Agent. For more information, see Configuring the agent.
Enabling JMX support in ActiveMQ
JMX remote support can be enable through environment variable or JVM args:
Pass “sun.management.jmxremote” as true in order to enable JMX remote support. Given below are the other mandatory jvm arguments for configuring JMX remote. These JVM arguments will be picked by artemis after restart.
This will enable JMX support in non-authentication mode. Please refer to the following section for enabling authentication on this port.
- Set “java.rmi.server.hostname” to the IP address of the node/host.
Enabling Authentication on port exposed
This will be done by Java-provided local JMX authentication method, which stores credentials and controls access using a local file
- Create a new folder called jmxremote
Create two files in this directory
The password file has the credentials that the JMX agent will check during client authentication.
Here the file content is registering the user "sixthsense" with password "R@kuten@1234"
- The access file has authorization information that is who is allowed to do what.
- Change the permissions on both files so that only owner can edit and view them.
Add the following
com.sun.management.jmxremote.password.file=/etc/jmxremote/jmxremote.password” in JVM_ARGS.
It should look like the following:
- Private Token from the onboarding team.
- Link to download a specific version.
To download the agent, perform the following procedure.
- Ensure there is ingress from the internet/ from the SixthSense enabled.
- Download the agent using curl.
Configuring the agent
- Unzip the downloaded Agent.
- Navigate to agent.config file i.e. Agent folder/config/agent.config file.The agent can be configured by adding the information in agent.config file.
In the agent.config file below, brokers JMX host and port details must be updated.
In the agent.config file below, agent general configuration must be updated.
The agent will override the values of these configs if set through environment variables.
Running the Agent
The Agent will run as a separate process and will connect to port exposed by ActiveMQ artemis. Use the following command to run the agent.