> For the complete documentation index, see [llms.txt](https://docs.pagerly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagerly.io/sre-ai-agent/data-sources/rabbitmq.md).

# RabbitMQ

## What the Agent Can Do

* Get cluster overview — version, total messages, connections, channels, queues
* List all queues with message counts, consumer counts, and publish/consume rates
* Get detailed queue stats — dead-letter config, memory usage, TTL settings
* List active connections — find blocked or slow connections

## Setup Instructions

1. Ensure the **RabbitMQ Management Plugin** is enabled
2. Create a monitoring user:

```bash
rabbitmqctl add_user pagerly your-password
rabbitmqctl set_user_tags pagerly monitoring
```

3. The Management API is usually on **port 15672**
4. Enter the Management URL and credentials in the Pagerly dashboard

## Required Credentials

| Field              | Description                           | Example                              |
| ------------------ | ------------------------------------- | ------------------------------------ |
| **Password**       | RabbitMQ password                     | `your-password`                      |
| **Username**       | RabbitMQ username with monitoring tag | `pagerly`                            |
| **Management URL** | RabbitMQ Management API URL           | `https://rabbitmq.company.com:15672` |

{% hint style="info" %}
**The `monitoring` tag** gives read-only access to all management data without the ability to modify queues or exchanges.
{% endhint %}

## Context Prompt Tips

> *"Main queues: order-processing, email-notifications. Dead-letter queue: dlq.orders. Production vhost is /production."*

## Docs

* [RabbitMQ Management HTTP API](https://www.rabbitmq.com/docs/management)
