Monitoring ActiveMQ Artemis

The ActiveMQ Artemis sensor is automatically installed after you install the Instana agent on the host where the ActiveMQ is running. You can view monitored hosts and metrics that are related to ActiveMQ Artemis in the Instana UI after you configure the sensor. For more information about the configuration of the sensor, see Configuring.

Supported information

Supported versions

Instana ActiveMQ Artemis sensor supports metrics and configuration data for versions: 2.0.0 to 2.6.x. Instana also supports JBoss ActiveMQ 7 and later.

Supported client-side tracing

Instana supports client-side tracing for Java.

Enabling JMX

If JMX is not enabled, the following message is displayed in the Instana UI:

Jmx is not enabled.
You can enable it in activemq config by setting the broker property useJmx to true.

You can enable JMX access by removing <authorisation> element from /apache-artemis/bin/myinstance/etc/management.xml.

Configuring

To enable in-depth metric monitoring, add the queues that you want to monitor to the <agent_install_dir>/etc/instana/configuration.yaml agent configuration file :

com.instana.plugin.activemqartemis:
  monitorQueues:
    - 'test-queue'
    - 'DLQ'

Viewing metrics

To view the metrics, complete the following steps:

  1. From the navigation menu in the Instana UI, select Infrastructure.
  2. Click a specific monitored host.

You can see a host dashboard with all the collected metrics and monitored processes.

Configuration data

  • Version
  • Broker Name
  • Node ID
  • Ports
  • Memory Limit
  • Addresses
  • Queues
  • Transport Acceptors

Performance metrics

Broker wide

Metric Description Granularity
Messages Added Number of messages that are added to the broker and is collected from activemq.artemis:broker#TotalMessagesAdded. 1 second
Messages Acknowledged Number of messages that are acknowledged (and removed) from the broker and is collected from activemq.artemis:broker#TotalMessagesAcknowledged. 1 second
Messages Expired Number of messages that are expired on the broker and is collected from the sum of subcomponent=queues#MessagesExpired for all queues. 1 second
Messages stopped Number of messages that are stopped on the broker to exceeding the max delivery attempts and is collected from the sum of subcomponent=queues#MessagesKilled for all queues. 1 second
Message Count Message count on all queues and is collected from the sum of subcomponent=queues#MessageCount for all queues. 1 second
Total Connections Number of total connections on the broker and is collected from activemq.artemis:broker#ConnectionCount. 1 second
Total Consumers Number of total consumers on the broker and is collected from activemq.artemis:broker#TotalConsumerCount. 1 second
Memory Usage Percentage of memory limit that is used by all addresses on broker and is collected from activemq.artemis:broker#AddressMemoryUsagePercentage. 1 second

Queues

Metric Description Granularity
Message Count Number of messages currently in this queue (includes scheduled, paged, and in-delivery messages) and is collected from subcomponent=queues#MessageCount. 1 second
Messages Added Number of messages that are added to the queue and is collected from subcomponent=queues#MessagesAdded. 1 second
Messages Acknowledged Number of messages that are acknowledged (and removed) from the queue and is collected from subcomponent=queues#MessagesAcknowledged. 1 second
Messages Expired Number of messages that are expired on this queue and is collected from subcomponent=queues#MessagesExpired. 1 second
Messages stopped Number of messages that are stopped on this queue due to exceeding the max delivery attempts and is collected from subcomponent=queues#MessagesKilled. 1 second

Health Signatures

Each sensor has a curated knowledgebase of health signatures that are evaluated continuously against the incoming metrics and are used to raise issues or incidents that depend on user impact.

Built-in events trigger issues or incidents based on failing health signatures on entities, and custom events trigger issues or incidents based on the thresholds of an individual metric of any entity.

For information about built-in events for the ActiveMQ Artemis sensor, see Built-in events reference.