How to Change the Value of 'rates_mode' in Tanzu RabbitMQ on Cloud Foundry
search cancel

How to Change the Value of 'rates_mode' in Tanzu RabbitMQ on Cloud Foundry

book

Article ID: 293183

calendar_today

Updated On:

Products

VMware Tanzu RabbitMQ

Issue/Introduction

This article describes how to change the value of rates_mode in Tanzu RabbitMQ on Cloud Foundry.

Environment


Cause

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

Resolution

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:

  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