forked from maxandersen/internet-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.yml
64 lines (55 loc) · 1.82 KB
/
prometheus.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
62
63
64
# my global config
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
external_labels:
monitor: 'Alertmanager'
rule_files:
- 'alert.rules'
scrape_configs:
- job_name: 'hub'
static_configs:
- targets: ['hub:19092']
- job_name: 'prometheus'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'speedtest'
scrape_interval: 10m
static_configs:
- targets: ['speedtest:9800']
- job_name: 'blackbox'
metrics_path: /probe
scrape_interval: 15s
params:
module: [http_2xx] # Look for a HTTP 200 response.
file_sd_configs:
- files:
- blackbox.yaml
relabel_configs:
- source_labels: [__address__]
regex: '(.*);(.*);(.*);(.*)' #first is the url, thus unique for instance
target_label: instance
replacement: $1
- source_labels: [__address__]
regex: '(.*);(.*);(.*);(.*)' #second is humanname to use in charts
target_label: humanname
replacement: $2
- source_labels: [__address__]
regex: '(.*);(.*);(.*);(.*)' #third state whether this is testing external or internal network
target_label: routing
replacement: $3
- source_labels: [__address__]
regex: '(.*);(.*);(.*);(.*)' #fourth is which switch/router the device is connected to.
target_label: switching
replacement: $4
- source_labels: [instance]
target_label: __param_target
- target_label: __address__
replacement: blackbox:9115 # The blackbox exporter's real hostname:port.
- job_name: 'nodeexp'
static_configs:
- targets: ['nodeexp:9100']
- job_name: 'smokeping'
static_configs:
- targets: ['smokeping:9374']