-
Notifications
You must be signed in to change notification settings - Fork 164
/
monitor-http-probe.yml
61 lines (55 loc) · 1.74 KB
/
monitor-http-probe.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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: blackbox_exporter
release: prometheus
properties:
blackbox_exporter:
config:
modules:
http:
prober: http
timeout: 5s
http:
tls_config:
insecure_skip_verify: ((skip_ssl_verify))
# Prometheus Scrape Config
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/scrape_configs/-
value:
job_name: blackbox
metrics_path: /probe
params:
module:
- http
static_configs:
- targets: ((probe_endpoints))
relabel_configs:
- source_labels: [__address__]
regex: (.*)
target_label: __param_target
replacement: ${1}
- source_labels: [__param_target]
regex: (.*)
target_label: instance
replacement: ${1}
- source_labels: []
regex: .*
target_label: __address__
replacement: localhost:9115
# Prometheus Alerts
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=probe_alerts?/release
value: prometheus
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/rule_files/-
value: /var/vcap/jobs/probe_alerts/*.alerts.yml
# Grafana Dashboards
- type: replace
path: /instance_groups/name=grafana/jobs/name=probe_dashboards?/release
value: prometheus
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=Probes?/files/-
value: /var/vcap/jobs/probe_dashboards/*.json