$prefix_vars{'t_inbytes/s'} = $2;
$prefix_vars{'t_outbytes/s'} = $3;
$prefix_vars{'t_avgduration'} = $4;
+ } elsif ($prefix_vars{'t_query'} =~ /[Ss]tats: (\d+) xacts\/s, (\d+) queries\/s, in (\d+) B\/s, out (\d+) B\/s, xact (\d+) us, query (\d+) us/) {
+ $prefix_vars{'t_loglevel'} = 'STATS';
+ $prefix_vars{'t_xact/s'} = $1;
+ $prefix_vars{'t_req/s'} = $2;
+ $prefix_vars{'t_inbytes/s'} = $3;
+ $prefix_vars{'t_outbytes/s'} = $4;
+ $prefix_vars{'t_avgtxduration'} = $5;
+ $prefix_vars{'t_avgduration'} = $6;
}
}
# Jump to the last line parsed if required
next if (!&check_incremental_position($fmt, $prefix_vars{'t_timestamp'}, $line));
+
# We have reach previous incremental position (or we not in increment mode)
$goon = 1;