-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkong.yaml
133 lines (133 loc) · 2.56 KB
/
kong.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
_format_version: "1.1"
_workspace: test
consumers:
- custom_id: consumer1_custom
keyauth_credentials:
- key: consumer1key
username: consumer1
plugins:
- config:
consumer_tag: consumer
host: datadog.default.svc.cluster.local
metrics:
- consumer_identifier: username
name: request_count
sample_rate: 1
stat_type: counter
tags:
- app:kong
- consumer_identifier: username
name: latency
sample_rate: null
stat_type: timer
tags:
- app:kong
- consumer_identifier: username
name: request_size
sample_rate: null
stat_type: timer
tags:
- app:kong
- consumer_identifier: username
name: response_size
sample_rate: null
stat_type: timer
tags:
- app:kong
- consumer_identifier: username
name: upstream_latency
sample_rate: null
stat_type: timer
tags:
- app:kong
- consumer_identifier: username
name: kong_latency
sample_rate: null
stat_type: timer
tags:
- app:kong
port: 8125
prefix: kong
service_name_tag: name
status_tag: status
enabled: true
name: datadog
protocols:
- grpc
- grpcs
- http
- https
- config:
custom_fields_by_lua: {}
path: /dev/stdout
reopen: false
enabled: true
name: file-log
protocols:
- grpc
- grpcs
- http
- https
- config:
anonymous: null
hide_credentials: false
key_in_body: false
key_in_header: true
key_in_query: true
key_names:
- apikey
run_on_preflight: true
enabled: true
name: key-auth
protocols:
- grpc
- grpcs
- http
- https
services:
- connect_timeout: 60000
enabled: true
host: httpbin.default.svc.cluster.local
name: example-service
port: 80
protocol: http
read_timeout: 60000
retries: 5
routes:
- https_redirect_status_code: 426
name: example-route
path_handling: v0
paths:
- /echo
preserve_host: false
protocols:
- http
- https
regex_priority: 0
request_buffering: true
response_buffering: true
strip_path: true
write_timeout: 60000
- connect_timeout: 60000
enabled: true
host: httpbin.default.svc.cluster.local
name: example2-service
port: 80
protocol: http
read_timeout: 60000
retries: 5
routes:
- https_redirect_status_code: 426
name: example2-route
path_handling: v0
paths:
- /echo
preserve_host: false
protocols:
- http
- https
regex_priority: 0
request_buffering: true
response_buffering: true
strip_path: true
write_timeout: 60000