forked from linkerd/linkerd-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.yml
42 lines (38 loc) · 877 Bytes
/
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
global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_configs:
- job_name: 'linkerd'
metrics_path: /admin/metrics/prometheus
static_configs:
- targets:
- 'linkerd:9990'
relabel_configs:
- source_labels: [__address__]
action: replace
target_label: instance
regex: (.+)(?::\d+)
replacement: $1
metric_relabel_configs:
- source_labels: [client]
action: replace
target_label: client
regex: .*\/([^/]+)
replacement: $1
- source_labels: [service]
action: replace
target_label: service
regex: .*\/([^/]+)
replacement: $1
- job_name: 'linkerd-tcp'
static_configs:
- targets:
- 'linkerd-tcp:9992'
- job_name: 'redis1'
static_configs:
- targets:
- 'redisexporter1:9121'
- job_name: 'redis2'
static_configs:
- targets:
- 'redisexporter2:9121'