> For the complete documentation index, see [llms.txt](https://utm-1.gitbook.io/utm-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utm-1.gitbook.io/utm-docs/dokumentaciya/utm-it/resheniya/monitoring/prometheus/monitoring-rabbitmq.md).

# Мониторинг RabbitMQ

## Ссылки

kbudde/rabbitmq-exporter: [hub.docker.com](https://hub.docker.com/r/kbudde/rabbitmq-exporter/)

## Установка RabbitMQ exporter

Описано [тут](/utm-docs/dokumentaciya/utm-it/resheniya/brokery-soobshenii/rabbitmq/instansy/utm-rabbitmq4-na-utm-mb4-11.md)

## Настройка Prometheus

### Регистрация target

В файле `argocd\env-prod\apps\monitoring\prometheus\values.yaml`&#x20;

<details>

<summary>Изменения в файле <code>argocd\env-prod\apps\monitoring\prometheus\values.yaml</code></summary>

Добавить ip сервера в секцию&#x20;

prometheus\prometheusSpec\additionalScrapeConfigs

```yaml
    additionalScrapeConfigs: |
      - job_name: 'rabbitmq_exporter'
        scrape_interval: 5s
        static_configs:
          - targets:
            - 192.168.4.9:9419
            - <ip>:9419
```

Сделать коммит в репозиторий GitHub с обновлением файла `values.yaml`&#x20;

Дождаться, когда Argo CD обновить приложение k8s-prometheus.

</details>

### Настройка оповещений

{% hint style="info" %}
**ПРОРАБОТАТЬ!!!**
{% endhint %}

## Настройка Grafana

### Импорт дашбордов из Argo CD

В файле `argocd\env-prod\apps\monitoring\grafana\values.yaml` добавить

<details>

<summary>Изменения в файле <code>argocd\env-prod\apps\monitoring\grafana\values.yaml</code></summary>

```yaml
dashboardProviders:
    - name: 'rabbitmq'
      orgId: 1
      folder: 'RabbitMQ'
      type: file
      disableDeletion: false
      editable: true
      options:
        path: /var/lib/grafana/dashboards/rabbitmq
        foldersFromFilesStructure: false
```

Сделать коммит в репозиторий GitHub с обновлением файла `values.yaml`&#x20;

Дождаться, когда Argo CD обновить приложение k8s-grafana.

</details>

#### Дашборды

<details>

<summary>Описание импортируемых дашбордов</summary>

Пока нет

</details>

### Ручной импорт дашбордов

В Grafana: Dashboards → Import → вставь ID  → выбери источник Prometheus.

Каталог в дашбордах: `RabbitMQ`

#### Дашборды

<details>

<summary>Описание импортируемых дашбордов</summary>

#### RabbitMQ-Overview

Ссылка: [grafana.com](https://grafana.com/grafana/dashboards/10991-rabbitmq-overview/)

ID: 10991

<figure><img src="/files/nXTeMmLaRbikZMW8FqmU" alt=""><figcaption></figcaption></figure>

## RabbitMQ-Quorum-Queues-Raft

Ссылка: [grafana.com](https://grafana.com/grafana/dashboards/11340-rabbitmq-quorum-queues-raft/)

ID: 11340

<figure><img src="/files/i6LnyIGdWVRyLwtheoVs" alt=""><figcaption></figcaption></figure>

## RabbitMQ-Stream

Ссылка: [grafana.com](https://grafana.com/grafana/dashboards/14798-rabbitmq-stream/)

ID: 14798

<figure><img src="/files/peovhkzQ9CEGYEu3Ew7T" alt=""><figcaption></figcaption></figure>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://utm-1.gitbook.io/utm-docs/dokumentaciya/utm-it/resheniya/monitoring/prometheus/monitoring-rabbitmq.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
