This repository has been archived by the owner on Oct 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
kataribe.toml
69 lines (65 loc) · 2.05 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
# 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 ]
# for Nginx($request_time)
scale = 0
effective_digit = 3
# for Apache(%D) and Varnishncsa(%D)
#scale = -6
#effective_digit = 6
# for Rack(Rack::CommonLogger)
#scale = 0
#effective_digit = 4
# 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
# 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
# You can aggregate requests by regular expression
# For overview of regexp syntax: https://golang.org/pkg/regexp/syntax/
[[bundle]]
regexp = '^(GET|HEAD) /memo/[0-9]+\b'
name = "get memo"
[[bundle]]
regexp = '^(GET|HEAD) /stylesheets/'
name = "stylesheets"
[[bundle]]
regexp = '^(GET|HEAD) /images/'
name = "images"
# 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]+/'
replace = '/<num>/'
[[replace]]
regexp = '/[0-9]+\s'
replace = '/<num> '
[[replace]]
regexp = '/[0-9]+.json'
replace = '/<num>.json'
[[replace]]
regexp = '=[0-9]+&'
replace = '=<num>&'
[[replace]]
regexp = '=[0-9]+\s'
replace = '=<num> '