-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathmonitor-haproxy.yml
31 lines (26 loc) · 1009 Bytes
/
monitor-haproxy.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
# 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: haproxy_exporter
release: prometheus
properties:
haproxy_exporter:
haproxy:
pid_file: "((haproxy_pid_file))"
scrape_uri: "((haproxy_scrape_uri))"
# Prometheus Alerts
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=haproxy_alerts?/release
value: prometheus
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/rule_files/-
value: /var/vcap/jobs/haproxy_alerts/*.alerts.yml
# Grafana Dashboards
- type: replace
path: /instance_groups/name=grafana/jobs/name=haproxy_dashboards?/release
value: prometheus
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=HAProxy?/files/-
value: /var/vcap/jobs/haproxy_dashboards/*.json