Verified Commit ec121e92 authored by Florian Pritz's avatar Florian Pritz
Browse files

nginx-zabbix: Ignore request time of 0 for stats



All the cached requests have 0 request time and that brings the median
request time to 0 nearly all the time thus rendering the stats useless.
Since we want to know how the application requests perform, we can just
ignore 0 values.
Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 1fa9697e
......@@ -86,7 +86,7 @@ sub main {
my $stat = $stat_per_host->{$host};
my $values = $values_per_host->{$host};
$stat->add_data($+{request_time});
$stat->add_data($+{request_time}) if $+{request_time} != 0;
$values->{request_count}++;
my $status_key = defined $values->{status}->{$+{status}} ? $+{status} : "other";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment