-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.yml
79 lines (72 loc) · 1.92 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
global:
# How frequently to scrape targets by default.
# Default 15s
scrape_interval: 1s
# How frequently to evaluate rules.
# Default 15s
evaluation_interval: 1s
# How long until a scrape request times out.
# Default to 10s.
# Required because cp-demo is using cpu throttling, so let's leave enough time to fetch the metrics in particular for the first time as it needs to compile all rexps
scrape_timeout: 1s
rule_files:
- "alert.rules"
alerting:
alertmanagers:
- scheme: http
static_configs:
- targets:
- "alertmanager:9093"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "zookeeper"
static_configs:
- targets:
- "zookeeper:80"
- "zookeeper:7000"
labels:
env: "dev"
relabel_configs:
- source_labels: [__address__]
target_label: hostname
regex: '([^:]+)(:[0-9]+)?'
replacement: '${1}'
- job_name: "kafka-broker"
static_configs:
- targets:
- "kafka-1:80"
- "kafka-2:80"
- "kafka-3:80"
- "kafka-4:80"
- "kafka-5:80"
labels:
env: "dev"
relabel_configs:
- source_labels: [__address__]
target_label: hostname
regex: '([^:]+)(:[0-9]+)?'
replacement: '${1}'
- job_name: "kafka-lag-exporter"
static_configs:
- targets:
- "kafka-lag-exporter:8000"
labels:
env: "dev"
relabel_configs:
- source_labels: [__address__]
target_label: hostname
regex: '([^:]+)(:[0-9]+)?'
replacement: '${1}'
- job_name: "burrow-exporter"
static_configs:
- targets:
- "burrow_exporter:8080"
labels:
env: "dev"
relabel_configs:
- source_labels: [__address__]
target_label: hostname
regex: '([^:]+)(:[0-9]+)?'
replacement: '${1}'