

The queue_coarse_metrics that provides acked/unacked/total/reductions for a queue and rabbitmq_detailed_queue_consumers which provider consumer count for a queue. RabbitMQ provides a detailed description here.įor our dashboards and alerts that are per-queue specific we need two families of metrics. An example of the HTTP path with the both of the query parameters would be /metrics/detailed?vhost=test&family=queue_coarse_metrics. The family parameter indicates what metrics to return and the vhost parameter indicates which virtual hosts to filter those metrics against. The Prometheus plugin allows two HTTP query parameters family and vhost on the /metrics/detailed path.
RABBITMQ MONITORING DASHBOARD HOW TO
This post will walk through how to scrape detailed metrics and also provide dashboards and alerts for the metrics.

It also does not require enabling per-object metrics for the whole Prometheus plugin that is slow and can cause high label cardinality. This allows us to avoid using two exporters and not worry about metric duplicates, label naming, multiple datasources for dashboards amongst other issues. However, recently the native RabbitMQ Prometheus plugin added another endpoint that provides detailed metrics that are both configurable and granular. The unofficial exporter refers to a mixed approach where you use the unofficial exporter for detailed metrics and disable all other metrics and use the native RabbitMQ Prometheus plugin for all other metrics. To solve this you could use the unofficial OSS RabbitMQ exporter written by kbudde that will allow you to have granular metrics enabled and also disable specific metrics that the native Prometheus plugin provides.
RABBITMQ MONITORING DASHBOARD SERIES
You could enable granular per-object metrics but this is not recommended as the plugin becomes much slower on a large cluster and the label cardinality for your time series database could become high. Granular metrics means per-queue/vhost metrics - detailed metrics that provide message lag and consumer info on a queue and vhost basis. RabbitMQ has a native built-in Prometheus plugin and by default it has granular metrics disabled.
