-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathmonitor-postgres.yml
More file actions
29 lines (24 loc) · 963 Bytes
/
monitor-postgres.yml
File metadata and controls
29 lines (24 loc) · 963 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
# 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: postgres_exporter
release: prometheus
properties:
postgres_exporter:
datasource_name: "((postgres_datasource_name))"
# Prometheus Alerts
- type: replace
path: /instance_groups/name=prometheus/jobs/name=postgres_alerts?/release
value: prometheus
- type: replace
path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/rule_files/-
value: /var/vcap/jobs/postgres_alerts/*.alerts.yml
# Grafana Dashboards
- type: replace
path: /instance_groups/name=grafana/jobs/name=postgres_dashboards?/release
value: prometheus
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=PostgreSQL?/files/-
value: /var/vcap/jobs/postgres_dashboards/*.json