-
Notifications
You must be signed in to change notification settings - Fork 1
/
prometheus-federation.yml
37 lines (34 loc) · 1.11 KB
/
prometheus-federation.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
# Monitor federated prometheus servers
# target URLs below rely on BOSH dns
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/scrape_configs/-
value:
job_name: dta_federation
scrape_interval: 15s
honor_labels: true
metrics_path: '/federate'
params:
match[]:
- '{job="prometheus"}'
- '{job=~"bosh"}'
static_configs:
- targets:
- d-cld.prometheus:9090
- y-cld.prometheus:9090
- b-cld.prometheus:9090
# sort out linking now that there are >1 prometheus2 instances
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/provides?
value:
prometheus: {as: prometheus_monitoring_env}
- type: replace
# path: /instance_groups/name=grafana/jobs/name=grafana/consumes?
# value:
# prometheus: {from: prometheus_monitoring_env}
path: /instance_groups/name=grafana/jobs/name=grafana/consumes?/prometheus
value:
from: prometheus_monitoring_env
- type: replace
path: /instance_groups/name=nginx/jobs/name=nginx/consumes?
value:
prometheus: {from: prometheus_monitoring_env}