Pivotal Knowledge Base

Follow

How to change the value of 'rates_mode' in Pivotal Cloud Foundry RabbitMQ

Environment

Pivotal Cloud Foundry RabbitMQ: 1.8.1 or above

Purpose

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:

  • None
  • Basic (default)
  • Detailed 

To change that setting, it’s possible to do so via Ops Manager using the RabbitMQ configuration textbox 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 for setting the rates_mode config:

  1. None
      • Erlang config
       [
       { rabbitmq_management, [ {rates_mode, none} ] }
       ].
      • Base64 config
       WwogeyByYWJiaXRtcV9tYW5hZ2VtZW50LCBbIHtyYXRlc19tb2RlLCBub25lfSBdIH0KXS4K 

        2. Basic

      • Erlang config
        [
        { rabbitmq_management, [ {rates_mode, basic} ] }
        ].
      • Base64 config
        WwogeyByYWJiaXRtcV9tYW5hZ2VtZW50LCBbIHtyYXRlc19tb2RlLCBiYXNpY30gXSB9Cl0uCg== 

        3. Detailed

      • Erlang config
        [
        { rabbitmq_management, [ {rates_mode, detailed} ] }
        ].
      • Base64 config
         WwogeyByYWJiaXRtcV9tYW5hZ2VtZW50LCBbIHtyYXRlc19tb2RlLCBkZXRhaWxlZH0gXSB9 

    The base64 value can be added in the text box as seen in the image below

     

     

     

     

Comments

Powered by Zendesk