mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-06 22:23:21 +00:00
varnish4_: Varnish 4.1 compatibiltiy
This commit is contained in:
parent
9b0c3d69c7
commit
0cb53cdbd3
2 changed files with 19 additions and 5 deletions
|
@ -34,6 +34,7 @@ The plugin needs to be able to execute varnishstat.
|
|||
|
||||
The configuration section shows the defaults
|
||||
[varnish4_*]
|
||||
group varnish
|
||||
env.varnishstat varnishstat
|
||||
env.name
|
||||
|
||||
|
@ -630,15 +631,15 @@ my %ASPECTS = (
|
|||
},
|
||||
'bans_tested' => {
|
||||
'type' => 'DERIVE',
|
||||
'min' => '0'
|
||||
'min' => '0'
|
||||
},
|
||||
'bans_obj_killed' => {
|
||||
'type' => 'DERIVE',
|
||||
'min' => '0'
|
||||
'min' => '0'
|
||||
},
|
||||
'bans_tests_tested' => {
|
||||
'type' => 'DERIVE',
|
||||
'min' => '0'
|
||||
'min' => '0'
|
||||
},
|
||||
'bans_dups' => {
|
||||
'type' => 'GAUGE'
|
||||
|
@ -714,24 +715,31 @@ my %ASPECTS = (
|
|||
},
|
||||
'sess_drop' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'backend_unhealthy' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'fetch_failed' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'backend_busy' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'threads_failed' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'threads_limited' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'threads_destroyed' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'thread_queue_len' => {
|
||||
'type' => 'GAUGE'
|
||||
|
@ -741,15 +749,18 @@ my %ASPECTS = (
|
|||
},
|
||||
'esi_errors' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'esi_warnings' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
},
|
||||
'sess_fail' => {
|
||||
'type' => 'DERIVE'
|
||||
},
|
||||
'sess_pipe_overflow' => {
|
||||
'type' => 'DERIVE'
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -778,9 +789,9 @@ my %ASPECTS = (
|
|||
sub translate_type
|
||||
{
|
||||
my $d = $_[0];
|
||||
if ($d eq "i") {
|
||||
if ($d eq "i" or $d eq "g") {
|
||||
$d = "GAUGE";
|
||||
} elsif ($d eq "a") {
|
||||
} elsif ($d eq "a" or $d eq "c") {
|
||||
$d = "DERIVE";
|
||||
}
|
||||
return $d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue