This article describes how to change the value of rates_mode
in Tanzu RabbitMQ on Cloud Foundry.
Due to an issue with the statsDB in versions of RabbitMQ before 3.6.7, statistics have been removed from the Management UI. In RMQ 3.6.7 and above, metrics are collected in a more robust way and are configurable in the RMQ tile.
This can be configured using a manifest property. The three options are basic, detailed, or none. The Default setting is basic. For details, refer here.
RabbitMQ accepts three options for ‘rates_mode’ setting:
In order to change that setting, it’s possible to do so via Operations (Ops) Manager using the RabbitMQ configuration text box found in the RabbitMQ settings tab. This field requires a base64 value that expands to an Erlang config similar to this.
Examples
Here are some examples to set the rates_mode config:
[ { rabbitmq_management, [ {rates_mode, none} ] } ].
WwogeyByYWJiaXRtcV9tYW5hZ2VtZW50LCBbIHtyYXRlc19tb2RlLCBub25lfSBdIH0KXS4K
2. Basic
[ { rabbitmq_management, [ {rates_mode, basic} ] } ].
WwogeyByYWJiaXRtcV9tYW5hZ2VtZW50LCBbIHtyYXRlc19tb2RlLCBiYXNpY30gXSB9Cl0uCg==
3. Detailed
[ { rabbitmq_management, [ {rates_mode, detailed} ] } ].
WwogeyByYWJiaXRtcV9tYW5hZ2VtZW50LCBbIHtyYXRlc19tb2RlLCBkZXRhaWxlZH0gXSB9
The base64 value can be added in the text box as seen in the image below