-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathmonitor-redis.yml
More file actions
30 lines (25 loc) · 938 Bytes
/
monitor-redis.yml
File metadata and controls
30 lines (25 loc) · 938 Bytes
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
# This file assumes bosh_exporter based Service Discovery is being used: ./monitor-bosh.yml
# Exporter jobs
- type: replace
path: /instance_groups/name=prometheus/jobs/-
value:
name: redis_exporter
release: prometheus
properties:
redis_exporter:
redis:
address: "((redis_address))"
# Prometheus Alerts
- type: replace
path: /instance_groups/name=prometheus/jobs/name=redis_alerts?/release
value: prometheus
- type: replace
path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/rule_files/-
value: /var/vcap/jobs/redis_alerts/*.alerts.yml
# Grafana Dashboards
- type: replace
path: /instance_groups/name=grafana/jobs/name=redis_dashboards?/release
value: prometheus
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=Redis?/files/-
value: /var/vcap/jobs/redis_dashboards/*.json