-
Notifications
You must be signed in to change notification settings - Fork 163
/
monitor-credhub.yml
46 lines (40 loc) · 1.39 KB
/
monitor-credhub.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Apply ./bosh/add-credhub-exporter-uaa-clients.yml to your bosh-deployment
# Exporter jobs
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=bpm?
value:
name: bpm
release: bpm
- type: replace
path: /instance_groups/name=prometheus2/jobs/-
value:
name: credhub_exporter
release: prometheus
properties:
credhub_exporter:
credhub:
api_url: ((credhub_url))
client_id: credhub_exporter
client_secret: "((uaa_credhub_exporter_client_secret))"
ca_certs: ((credhub_ca.ca))
metrics:
deployment: ((credhub_deployment_name))
environment: "((metrics_environment))"
skip_ssl_verify: ((skip_ssl_verify))
filters:
generic-certificates:
- "/static/.*"
# Prometheus Alerts
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=credhub_alerts?/release
value: prometheus
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/rule_files/-
value: /var/vcap/jobs/credhub_alerts/*.alerts.yml
# Grafana Dashboards
- type: replace
path: /instance_groups/name=grafana/jobs/name=credhub_dashboards?/release
value: prometheus
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=BOSH?/files/-
value: /var/vcap/jobs/credhub_dashboards/*.json