How to monitor the metrics for a single RabbitMQ Service Instance in Grafana
search cancel

How to monitor the metrics for a single RabbitMQ Service Instance in Grafana

book

Article ID: 380094

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

In current healthwatch versions, the default Tanzu RabbitMQ dashboard shows metrics of all nodes belonging to the p-rabbitmq tile and the service-instance deployments.

However, in some scenarios, users may have a need to display the metrics for a specific RabbitMQ service-instance and expect there is already a pre-configured dashboard for this purpose. 

Resolution

The Healthwatch product team is considering to add this feature in the coming patch. Please stay tuned and check the release notes if needed.

We have a temporary workaround to use the following promql script. Please replace the section of <DEPLOYMENT> to the actual service-instance deployment name when running it in your own environment. 

sum(rabbitmq_build_info * on(instance, job,<DEPLOYMENT>) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster="$rabbitmq_cluster", namespace="$namespace",job="healthwatch-pas-exporter"})