mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-26 01:02:25 +08:00
Combine '# Log_slow_rate_type: query Log_slow_rate_limit: 2' as 'query:2' and report as 'rate_limit' metric.
This commit is contained in:
@@ -423,6 +423,20 @@ ok(
|
||||
'Analysis for slow058 (bug 821692, bug 984053)'
|
||||
) or diag($test_diff);
|
||||
|
||||
# #############################################################################
|
||||
# pt-query-digest support for Percona Server slow log rate limiting
|
||||
# https://blueprints.launchpad.net/percona-toolkit/+spec/pt-query-digest-rate-limit
|
||||
# #############################################################################
|
||||
ok(
|
||||
no_diff(
|
||||
sub { pt_query_digest::main(@args, $sample.'slow059.txt',
|
||||
'--report-format', 'header,query_report,profile')
|
||||
},
|
||||
"t/pt-query-digest/samples/slow059_report01.txt"
|
||||
),
|
||||
'Analysis for slow059 with rate limiting'
|
||||
) or diag($test_diff);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
||||
Reference in New Issue
Block a user