1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Update varnish5_ improving request_rate, transfer_rates

- request_rate
  - major reordering. making possible to read pass rates evolutions and rejected requests visible
  - small fix: sess_conn not client_conn in the order

- transfer_rates
  - using AREA/STACK
This commit is contained in:
Antony 2022-03-28 01:44:24 -04:00 committed by GitHub
parent e12c8afdb7
commit 5d0b7e9caf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,37 +170,26 @@ my %data;
my %ASPECTS = ( my %ASPECTS = (
'request_rate' => { 'request_rate' => {
'title' => 'Request rates', 'title' => 'Request rates',
'order' => 'cache_hit cache_hitpass cache_miss cache_hitmiss' 'order' => 'sess_conn client_req s_pass cache_miss cache_hitmiss cache_hitpass cache_hit s_pipe'
. 'backend_conn backend_unhealthy ' . ' backend_conn backend_unhealthy',
. 'client_req client_conn' ,
'values' => { 'values' => {
'sess_conn' => { 'sess_conn' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'draw' => 'AREA',
'min' => '0', 'min' => '0',
'colour' => '444444', 'colour' => 'FF5D00',
'graph' => 'ON' 'graph' => 'ON'
}, },
'client_req' => { 'client_req' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'colour' => '111111', 'colour' => '777777',
'min' => '0' 'min' => '0',
}, },
'cache_hit' => { 's_pass' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'draw' => 'AREA', 'draw' => 'AREA',
'colour' => '00FF00', 'min' => '0',
'min' => '0' 'colour' => 'BA4300'
},
'cache_hitpass' => {
'info' => 'Hitpass are cached passes: An '
. 'entry in the cache instructing '
. 'Varnish to pass. Typically '
. 'achieved after a pass in '
. 'vcl_fetch.',
'type' => 'DERIVE',
'draw' => 'STACK',
'colour' => 'FFFF00',
'min' => '0'
}, },
'cache_miss' => { 'cache_miss' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
@ -219,25 +208,38 @@ my %ASPECTS = (
'colour' => 'FFFF00', 'colour' => 'FFFF00',
'min' => '0' 'min' => '0'
}, },
'cache_hitpass' => {
'info' => 'Hitpass are cached passes: An '
. 'entry in the cache instructing '
. 'Varnish to pass. Typically '
. 'achieved after a pass in '
. 'vcl_fetch.',
'type' => 'DERIVE',
'draw' => 'STACK',
'colour' => 'FFFF00',
'min' => '0'
},
'cache_hit' => {
'type' => 'DERIVE',
'draw' => 'STACK',
'colour' => '00FF00',
'min' => '0'
},
's_pipe' => {
'type' => 'DERIVE',
'draw' => 'STACK',
'min' => '0',
'colour' => '0A7B0B'
},
'backend_conn' => { 'backend_conn' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'colour' => '995599', 'colour' => 'EEEEEE',
'min' => '0' 'min' => '0'
}, },
'backend_unhealthy' => { 'backend_unhealthy' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'min' => '0', 'min' => '0',
'colour' => 'FF55FF' 'colour' => 'FF55FF'
},
's_pipe' => {
'type' => 'DERIVE',
'min' => '0',
'colour' => '1d2bdf'
},
's_pass' => {
'type' => 'DERIVE',
'min' => '0',
'colour' => '785d0d'
} }
} }
}, },
@ -346,14 +348,14 @@ my %ASPECTS = (
}, },
'transfer_rates' => { 'transfer_rates' => {
'title' => 'Transfer rates', 'title' => 'Transfer rates',
'order' => 's_resp_bodybytes s_resp_hdrbytes', 'order' => 's_resp_hdrbytes s_resp_bodybytes',
'args' => '-l 0', 'args' => '-l 0',
'vlabel' => 'bit/s', 'vlabel' => 'bit/s',
'values' => { 'values' => {
's_resp_hdrbytes' => { 's_resp_hdrbytes' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'label' => 'Header traffic', 'label' => 'Header traffic',
'draw' => 'STACK', 'draw' => 'AREA',
'min' => '0', 'min' => '0',
'info' => 'HTTP Header traffic. TCP/IP ' 'info' => 'HTTP Header traffic. TCP/IP '
. 'overhead is not included.', . 'overhead is not included.',
@ -361,7 +363,7 @@ my %ASPECTS = (
}, },
's_resp_bodybytes' => { 's_resp_bodybytes' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'draw' => 'AREA', 'draw' => 'STACK',
'label' => 'Body traffic', 'label' => 'Body traffic',
'min' => '0', 'min' => '0',
'cdef' => 's_resp_bodybytes,8,*' 'cdef' => 's_resp_bodybytes,8,*'
@ -773,7 +775,6 @@ my %ASPECTS = (
}, },
'sess_pipe_overflow' => { 'sess_pipe_overflow' => {
'type' => 'DERIVE' 'type' => 'DERIVE'
} }
} }
}, },
@ -1219,4 +1220,3 @@ foreach my $value (keys %{$ASPECTS{$self}{'values'}}) {
print "$data{$value}{'value'}\n"; print "$data{$value}{'value'}\n";
} }
} }