This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
/
02-statsd.yaml
76 lines (76 loc) · 2.27 KB
/
02-statsd.yaml
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
apiVersion: v1
kind: ConfigMap
metadata:
name: envoy-statsd
namespace: gimbal-contour
data:
statsd.yaml: |2-
mappings:
- match: 'envoy\.cluster\.(.+?)\/(.+?)\/(.+?)\.upstream_cx_connect_ms'
match_type: regex
name: "envoy_cluster_upstream_cx_connect_time"
timer_type: 'histogram'
labels:
cluster_name: "$1/$2/$3"
namespace: "$1"
service: "$2"
port: "$3"
- match: 'envoy\.cluster\.(.+?)\/(.+?)\/(.+?)\.upstream_cx_length_ms'
match_type: regex
name: "envoy_cluster_upstream_cx_length"
timer_type: 'histogram'
labels:
cluster_name: "$1/$2/$3"
namespace: "$1"
service: "$2"
port: "$3"
- match: 'envoy\.cluster\.(.+?)\/(.+?)\/(.+?)\.upstream_rq_time'
match_type: regex
name: "envoy_cluster_upstream_rq_time"
timer_type: 'histogram'
labels:
cluster_name: "$1/$2/$3"
namespace: "$1"
service: "$2"
port: "$3"
- match: 'envoy\.cluster\.(.+?)\/(.+?)\/(.+?)\.internal.upstream_rq_time'
match_type: regex
name: "envoy_cluster_internal_upstream_rq_time"
timer_type: 'histogram'
labels:
cluster_name: "$1/$2/$3"
namespace: "$1"
service: "$2"
port: "$3"
- match: 'envoy\.cluster\.(.+?)\/(.+?)\/(.+?)\.external.upstream_rq_time'
match_type: regex
name: "envoy_cluster_external_upstream_rq_time"
timer_type: 'histogram'
labels:
cluster_name: "$1/$2/$3"
namespace: "$1"
service: "$2"
port: "$3"
- match: 'envoy\.cluster\.(.+?)\/(.+?)\/(.+?)\.canary.upstream_rq_time'
match_type: regex
name: "envoy_cluster_canary_upstream_rq_time"
timer_type: 'histogram'
labels:
cluster_name: "$1/$2/$3"
namespace: "$1"
service: "$2"
port: "$3"
- match: 'envoy.http.*.downstream_cx_length_ms'
name: "envoy_http_downstream_cx_length"
timer_type: 'histogram'
labels:
http_conn_manager_prefix: "$1"
- match: 'envoy.http.*.downstream_rq_time'
name: "envoy_http_downstream_rq_time"
timer_type: 'histogram'
labels:
http_conn_manager_prefix: "$1"
- match: '.'
match_type: 'regex'
action: 'drop'
name: 'dropped'