docs/reference/metricbeat/metricbeat-module-activemq.md
% This file is generated! See metricbeat/scripts/mage/docs_collector.go
:::::{admonition} Prefer to use {{agent}} for this use case? Refer to the Elastic Integrations documentation.
::::{dropdown} Learn more {{agent}} is a single, unified way to add monitoring for logs, metrics, and other types of data to a host. It can also protect hosts from security threats, query data from operating systems, forward data from remote services or hardware, and more. Refer to the documentation for a detailed comparison of {{beats}} and {{agent}}.
::::
:::::
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 Jolokia to fetch JMX metrics. Refer to the link for instructions about how to use Jolokia.
The ActiveMQ module supports the standard configuration options that are described in Modules. Here is an example configuration:
metricbeat.modules:
- 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
The following metricsets are available: