-
Notifications
You must be signed in to change notification settings - Fork 4
/
prometheus-adapter.yml
47 lines (43 loc) · 1.43 KB
/
prometheus-adapter.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
prometheus:
url: http://linkerd-prometheus.linkerd.svc
rules:
default: false
custom:
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
matches: ^(.*)_bucket$
as: "${1}_50th"
metricsQuery: histogram_quantile(0.50, sum(rate(<<.Series>>{<<.LabelMatchers>>, direction="inbound"}[5m])) by (le, <<.GroupBy>>))
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
matches: ^(.*)_bucket$
as: "${1}_95th"
metricsQuery: histogram_quantile(0.95, sum(rate(<<.Series>>{<<.LabelMatchers>>, direction="inbound"}[5m])) by (le, <<.GroupBy>>))
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
matches: ^(.*)_bucket$
as: "${1}_99th"
metricsQuery: histogram_quantile(0.99, sum(rate(<<.Series>>{<<.LabelMatchers>>, direction="inbound"}[5m])) by (le, <<.GroupBy>>))
- seriesQuery: 'request_total{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
matches: "^(.*)_total$"
as: "${1}s_per_second"
metricsQuery: |-
sum(
rate(
<<.Series>>{
<<.LabelMatchers>>,
direction="inbound"
}[5m]
)
) by (
<<.GroupBy>>
)