How to enable Prometheus per-Queue Metrics in Tanzu RabbitMQ v2.0
search cancel

How to enable Prometheus per-Queue Metrics in Tanzu RabbitMQ v2.0

book

Article ID: 293212

calendar_today

Updated On:

Products

VMware RabbitMQ

Issue/Introduction

In Tanzu RabbitMQ v1.x, queue depth and queue consumer metrics were emitted for every queue.

In Tanzu RabbitMQ v2.0, Prometheus is used to query metrics. By default, only aggregated metrics are returned. For more information, refer to Aggregated and Per-Object Metrics.

Environment

Product Version: 2.0

Resolution

Before applying any changes, make sure you have read Aggregated and Per-Object Metrics.


"Per-object: individual metric for each object-metric pair. With a large number of stats-emitting entities, e.g. a lot of connections and queues, this can result in very large payloads and a lot of CPU resources spent serialising data to output."


To enable Prometheus per-Queue Metrics in Tanzu RabbitMQ tile v2.0, you need to set prometheus.return_per_object_metrics = true.

You can set this value through override config. For more information, refer to Expert Mode - Overriding RabbitMQ Server Configuration