-
Notifications
You must be signed in to change notification settings - Fork 164
/
monitor-rabbitmq.yml
32 lines (27 loc) · 1.02 KB
/
monitor-rabbitmq.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This file assumes bosh_exporter based Service Discovery is being used: ./monitor-bosh.yml
# Exporter jobs
- type: replace
path: /instance_groups/name=prometheus2/jobs/-
value:
name: rabbitmq_exporter
release: prometheus
properties:
rabbitmq_exporter:
rabbitmq:
url: "((rabbitmq_url))"
user: "((rabbitmq_user))"
password: "((rabbitmq_password))"
# Prometheus Alerts
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=rabbitmq_alerts?/release
value: prometheus
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/rule_files/-
value: /var/vcap/jobs/rabbitmq_alerts/*.alerts.yml
# Grafana Dashboards
- type: replace
path: /instance_groups/name=grafana/jobs/name=rabbitmq_dashboards?/release
value: prometheus
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=RabbitMQ?/files/-
value: /var/vcap/jobs/rabbitmq_dashboards/*.json