activemq moduleedit

This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

This module periodically fetches JMX metrics from Apache ActiveMQ.


The module has been tested with ActiveMQ 5.13.0 and 5.15.9. Other versions are expected to work.


The ActiveMQ module requires Jolokiato fetch JMX metrics. Refer to the link for instructions about how to use Jolokia.

Example configurationedit

The activemq module supports the standard configuration options that are described in Specify which modules to run. Here is an example configuration:

- module: activemq
  metricsets: ['broker', 'queue', 'topic']
  period: 10s
  hosts: ['localhost:8161']
  path: '/api/jolokia/?ignoreErrors=true&canonicalNaming=false'
  username: admin # default username
  password: admin # default password
    - script:
        lang: javascript
        source: >
          function process(event) {
            var broker_memory_broker_pct = event.Get("")
            if (broker_memory_broker_pct != null) {
              event.Put("", broker_memory_broker_pct / 100.0)

            var broker_memory_temp_pct = event.Get("")
            if (broker_memory_temp_pct != null) {
              event.Put("", broker_memory_temp_pct / 100.0)

            var broker_memory_store_pct = event.Get("")
            if (broker_memory_store_pct != null) {
              event.Put("", broker_memory_store_pct / 100.0)

            var queue_memory_broker_pct = event.Get("")
            if (queue_memory_broker_pct != null) {
              event.Put("", queue_memory_broker_pct / 100.0)

            var topic_memory_broker_pct = event.Get("")
            if (topic_memory_broker_pct != null) {
              event.Put("", topic_memory_broker_pct / 100.0)


The following metricsets are available: