5.4. Disabling metrics collection for specific addresses
When you configure a metrics plugin for AMQ Broker (for example, the Prometheus metrics plugin), metrics collection is enabled by default. However, within the address-setting configuration element of a specific address or set of addresses, you can explicitly disable metrics collection.
The following procedure shows how disable metrics collection for a specific address or set of addresses.
Procedure
-
Open the
<broker_instance_dir>/etc/broker.xmlconfiguration file. In the
address-settingelement of a matching address or set of addresses, add theenable-metricsparameter and set the value of the parameter tofalse. For example, the following configuration disables metrics collection for an address calledorders.<configuration> <core> ... <address-settings> <address-setting match="orders"> ... <enable-metrics>false</enable-metrics> ... </address-setting> </address-settings> ... </core> </configuration>