-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathprometheus.yml
43 lines (40 loc) · 1.02 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
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- prometheus.rules
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
- job_name: alertmanager
static_configs:
- targets: ['localhost:9093']
- job_name: node
file_sd_configs:
- files: ['/etc/prometheus/node_exporter.json']
relabel_configs:
- source_labels: ['__address__']
target_label: 'host'
regex: '(.*):.*'
- source_labels: ['__address__']
target_label: 'instance'
regex: '(.*):.*'
replacement: '${1}:9100'
- job_name: cadvisor
file_sd_configs:
- files: ['/etc/prometheus/cadvisor.json']
relabel_configs:
- source_labels: ['__address__']
target_label: 'host'
regex: '(.*):.*'
- source_labels: ['__address__']
target_label: 'instance'
regex: '(.*):.*'
replacement: '${1}:8080'
alerting:
alertmanagers:
- scheme: @ALERTMANAGER_SCHEME@
static_configs:
- targets:
- "@ALERTMANAGER_URL@"