mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Update apache_average_time_last_n_requests
This commit is contained in:
parent
22292022bc
commit
2a776fa560
1 changed files with 3 additions and 2 deletions
|
@ -18,13 +18,14 @@
|
|||
#
|
||||
# Configurable variables
|
||||
# fieldno - Override the default field number
|
||||
# linecount - How many last request to consider
|
||||
#%# family=auto
|
||||
|
||||
use strict;
|
||||
|
||||
my $LAST_N_REQUESTS = 100000; # calculate based on this amount of requests
|
||||
my $ACCESS_LOG_PATTERN = '/var/log/apache2/access.log.*'; # log pattern, if many it will take the last one.
|
||||
my $LAST_N_REQUESTS = exists $ENV{'linecount'} ? $ENV{'linecount'} : 100000; # calculate based on this amount of requests
|
||||
my $TIME_FIELD_INDEX = exists $ENV{'fieldno'} ? $ENV{'fieldno'} : -2; # second last field
|
||||
my $ACCESS_LOG_PATTERN = '/var/log/apache2/access.log.*'; # log pattern, if many it will take the last one.
|
||||
|
||||
my $config =<< "CONFIG"
|
||||
graph_title Apache average seconds last $LAST_N_REQUESTS requests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue