This article shows how to disable runtime statistics on a specific ActiveMQ broker using the REST API. Disabling statistics can reduce overhead if monitoring metrics are not required.
Disable ActiveMQ Broker Statistics
POST /activemq/brokers/{nodeName}/{managerName}/{brokerName}/disable-statistics
Disables the collection of runtime statistics on a specific ActiveMQ Broker.
Example Request
curl -X 'POST' \ 'http://<hostname>:8019/rest/v1/activemq/brokers/CMACTIVEMQ/Activemq-server/DemoBroker/disable-statistics' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4='
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 – Statistics successfully disabled.
304 – Statistics were already disabled or no change occurred.
* – Error response – returns an error object with details.
Response Header
201 Created – Statistics disabled 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