This article shows how to enable statistics on a specific ActiveMQ broker using the REST API.
Enable ActiveMQ Broker Statistics
POST /activemq/brokers/{nodeName}/{managerName}/{brokerName}/enable-statistics
Enables statistics collection for a specific ActiveMQ broker.
Example Request
curl -X 'POST' \ 'http://<hostname>:8019/rest/v1/activemq/brokers/CMACTIVEMQ/Activemq-server/DemoBroker/enable-statistics' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4=' \ -d ''
Query Parameters
| Parameter | Type | Description |
|---|---|---|
jobDate | integer | Schedule job date (Unix Timestamp). |
jobTags | string | Comma-separated list of job tags (used only with jobDate). |
validateAccessForUser | string | Validate endpoint access for the user. |
Response Codes
201 Created – Statistics enabled successfully.
304 Not Modified – Action failed, no changes applied.
* – Error response, returns detailed error object.
Response Header
201 Created – Statistics enabled successfully.
access-control-allow-credentials: true access-control-allow-origin: http://<hostname>:8019 date: Mon,29 Sep 2025 08:41:09 GMT server: Jetty(10.0.22) vary: Origin