forked from dbgofy/isucon14
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkataribe.toml
150 lines (121 loc) · 4.06 KB
/
kataribe.toml
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
################################################################################
# General
################################################################################
# Top Ranking Group By Request
ranking_count = 20
# Top Slow Requests
slow_count = 37
# Show Standard Deviation column
show_stddev = true
# Show HTTP Status Code columns
show_status_code = true
# Show HTTP Response Bytes columns
show_bytes = true
# Percentiles
percentiles = [ 50.0, 90.0, 95.0, 99.0 ]
################################################################################
# Scale
################################################################################
# for Nginx($request_time)
scale = 0
effective_digit = 3
# for Apache(%D) and Varnishncsa(%D)
#scale = -6
#effective_digit = 6
# for H2O(%{duration}x)
#scale = 0
#effective_digit = 6
# for Envoy
#scale = -3
#effective_digit = 3
# for Rack(Rack::CommonLogger)
#scale = 0
#effective_digit = 4
################################################################################
# Parse
################################################################################
#
# combined + duration
# Nginx example: '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $request_time'
# Apache example: "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D"
# H2O example: "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\" %{duration}x"
# Varnishncsa example: '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i" %D'
#
log_format = '^([^ ]+) ([^ ]+) ([^ ]+) \[([^\]]+)\] "((?:\\"|[^"])*)" (\d+) (\d+|-) "((?:\\"|[^"])*)" "((?:\\"|[^"])*)" ([0-9.]+)$'
request_index = 5
status_index = 6
bytes_index = 7
duration_index = 10
#
# Envoy example: use default format
#
#log_format = '^\[([^\]]+)\] "((?:\\"|[^"])*)" (\d+) ([^ ]+) (\d+|-) (\d+|-) (\d+) (\d+) "((?:\\"|[^"])*)" "((?:\\"|[^"])*)" "((?:\\"|[^"])*)" "((?:\\"|[^"])*)" "((?:\\"|[^"])*)"'
#request_index = 2
#status_index = 3
#bytes_index = 6
#duration_index = 7
#
# Rack example: use Rack::CommonLogger, Logger.new("/tmp/app.log")
#
#log_format = '^([^ ]+) ([^ ]+) ([^ ]+) \[([^\]]+)\] "((?:\\"|[^"])*)" (\d+) (\d+|-) ([0-9.]+)$'
#request_index = 5
#status_index = 6
#bytes_index = 7
#duration_index = 8
################################################################################
# Bundle
################################################################################
#
# You can aggregate requests by regular expression
# For overview of regexp syntax: https://golang.org/pkg/regexp/syntax/
#
#[[bundle]]
#regexp = '^(GET|HEAD) /users/[0-9]+\b'
#name = 'GET /memo/*'
## favicon files
[[bundle]]
regexp = '^(GET|HEAD) /favicon'
name = 'GET /favicon*'
## static files
[[bundle]]
regexp = '^(GET|HEAD) /assets/'
name = 'GET /assets/*'
## images files
[[bundle]]
regexp = '^(GET|HEAD) /images/'
name = 'GET /images/*'
## GET /api/app/nearby-chairs?distance=...
[[bundle]]
regexp = '^GET /api/app/nearby-chairs\?'
name = 'GET /api/app/neraby-chairs?distance=:distance&latitude=:latitude&longitude=:longitude'
## POST /api/chair/rides/:ulid/status
[[bundle]]
regexp = '^POST /api/chair/rides/[A-HJKLMNP-Z0-9]{26}/status'
name = 'POST /api/chair/rides/:ulid/status'
## POST /api/app/rides/:ulid/evaluation
[[bundle]]
regexp = '^POST /api/app/rides/[A-HJKMNP-Z0-9]{26}/evaluation'
name = 'POST /api/app/rides/:ulid/evaluation'
## GET /api/owner/sales?since=...&until=...
[[bundle]]
regexp = '^GET /api/owner/sales\?'
name = 'GET /api/owner/sales?since=:since&until=:until'
################################################################################
# Replace
################################################################################
#
# You can replace the part of urls which matched to your regular expressions.
# For overview of regexp syntax: https://golang.org/pkg/regexp/syntax/
#
#[[replace]]
#regexp = '/[0-9]+(/|\s)'
#replace = '/<num>$1'
#
#[[replace]]
#regexp = '=[0-9]+(&|\s)'
#replace = '=<num>$1'
#
#[[replace]]
#regexp = '\s+HTTP/[0-9.]+$'
#replace = ''
################################################################################