remove value counters
This commit is contained in:
parent
aa02352210
commit
b38cb19df2
|
@ -37,7 +37,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'ratio' }, { name => 'key' }, { name => 'instance_label' } ],
|
||||
output_template => 'Ratio: %.2f',
|
||||
perfdatas => [
|
||||
{ label => 'ratio', value => 'ratio', template => '%.2f',
|
||||
{ label => 'ratio', template => '%.2f',
|
||||
min => 0, label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'error_hits' }, { name => 'key' }, { name => 'instance_label' } ],
|
||||
output_template => 'Hits Error: %.3f hits/s',
|
||||
perfdatas => [
|
||||
{ label => 'hits_error', value => 'error_hits', template => '%.3f',
|
||||
{ label => 'hits_error', template => '%.3f',
|
||||
min => 0, unit => 'hits/s', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'hits' }, { name => 'key' }, { name => 'instance_label' } ],
|
||||
output_template => 'Hits: %.3f hits/s',
|
||||
perfdatas => [
|
||||
{ label => 'hits', value => 'hits', template => '%.3f',
|
||||
{ label => 'hits', template => '%.3f',
|
||||
min => 0, unit => 'hits/s', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ sub new {
|
|||
'instance:s' => { name => 'instance', default => 'layer' },
|
||||
'top:s' => { name => 'top' },
|
||||
'filter:s' => { name => 'filter' },
|
||||
'from:s' => { name => 'from', default => 'http' },
|
||||
'from:s' => { name => 'from', default => 'http' }
|
||||
});
|
||||
|
||||
return $self;
|
||||
|
|
|
@ -37,7 +37,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'syns_ratio' }, { name => 'key' }, { name => 'instance_label' } ],
|
||||
output_template => 'Ratio: %.2f',
|
||||
perfdatas => [
|
||||
{ label => 'ratio', value => 'syns_ratio', template => '%.2f',
|
||||
{ label => 'ratio', template => '%.2f',
|
||||
min => 0, label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'syns' }, { name => 'key' }, { name => 'instance_label' } ],
|
||||
output_template => 'Connections Attempts: %.2f conn/s',
|
||||
perfdatas => [
|
||||
{ label => 'attempt', value => 'syns', template => '%.2f',
|
||||
{ label => 'attempt', template => '%.2f',
|
||||
min => 0, unit => 'connections/s', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'ct_count' }, { name => 'key' }, { name => 'instance_label' } ],
|
||||
output_template => 'Successful Connections: %.2f conn/s',
|
||||
perfdatas => [
|
||||
{ label => 'successful', value => 'ct_count', template => '%.2f',
|
||||
{ label => 'successful', template => '%.2f',
|
||||
min => 0, unit => 'connections/s', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'ct' }, { name => 'key' }, { name => 'instance_label' } ],
|
||||
output_template => 'Average Connection Time: %.3f ms',
|
||||
perfdatas => [
|
||||
{ label => 'connection_time', value => 'ct', template => '%.3f',
|
||||
{ label => 'connection_time', template => '%.3f',
|
||||
min => 0, unit => 'ms', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
}
|
||||
|
|
|
@ -39,9 +39,8 @@ sub set_counters {
|
|||
output_template => 'Total Traffic: %.2f %s/s',
|
||||
output_change_bytes => 2,
|
||||
perfdatas => [
|
||||
{ label => 'total_traffic', value => 'total_traffic', template => '%d',
|
||||
min => 0, unit => 'b/s' },
|
||||
],
|
||||
{ label => 'total_traffic', template => '%d', min => 0, unit => 'b/s' }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ label => 'total-server-traffic', set => {
|
||||
|
@ -49,9 +48,8 @@ sub set_counters {
|
|||
output_template => 'Total Server Traffic: %.2f %s/s',
|
||||
output_change_bytes => 2,
|
||||
perfdatas => [
|
||||
{ label => 'total_server_traffic', value => 'total_server_traffic', template => '%d',
|
||||
min => 0, unit => 'b/s' },
|
||||
],
|
||||
{ label => 'total_server_traffic', template => '%d', min => 0, unit => 'b/s' }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ label => 'total-client-traffic', set => {
|
||||
|
@ -59,11 +57,10 @@ sub set_counters {
|
|||
output_template => 'Total Client Traffic: %.2f %s/s',
|
||||
output_change_bytes => 2,
|
||||
perfdatas => [
|
||||
{ label => 'total_client_traffic', value => 'total_client_traffic', template => '%d',
|
||||
min => 0, unit => 'b/s' },
|
||||
],
|
||||
{ label => 'total_client_traffic', template => '%d', min => 0, unit => 'b/s' }
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
];
|
||||
|
||||
$self->{maps_counters}->{instances} = [
|
||||
|
@ -72,9 +69,9 @@ sub set_counters {
|
|||
output_template => 'Traffic: %.2f %s/s',
|
||||
output_change_bytes => 2,
|
||||
perfdatas => [
|
||||
{ label => 'traffic', value => 'traffic', template => '%d',
|
||||
min => 0, unit => 'b/s', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
{ label => 'traffic', template => '%d',
|
||||
min => 0, unit => 'b/s', label_extra_instance => 1, instance_use => 'key' }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ label => 'server-traffic', set => {
|
||||
|
@ -82,9 +79,9 @@ sub set_counters {
|
|||
output_template => 'Server Traffic: %.2f %s/s',
|
||||
output_change_bytes => 2,
|
||||
perfdatas => [
|
||||
{ label => 'server_traffic', value => 'server_traffic', template => '%d',
|
||||
min => 0, unit => 'b/s', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
{ label => 'server_traffic', template => '%d',
|
||||
min => 0, unit => 'b/s', label_extra_instance => 1, instance_use => 'key' }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ label => 'client-traffic', set => {
|
||||
|
@ -92,11 +89,11 @@ sub set_counters {
|
|||
output_template => 'Client Traffic: %.2f %s/s',
|
||||
output_change_bytes => 2,
|
||||
perfdatas => [
|
||||
{ label => 'client_traffic', value => 'client_traffic', template => '%d',
|
||||
min => 0, unit => 'b/s', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
{ label => 'client_traffic', template => '%d',
|
||||
min => 0, unit => 'b/s', label_extra_instance => 1, instance_use => 'key' }
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -37,11 +37,11 @@ sub set_counters {
|
|||
key_values => [ { name => 'user_experience' }, { name => 'key' }, { name => 'instance_label' } ],
|
||||
output_template => 'End-User Experience: %.3f s',
|
||||
perfdatas => [
|
||||
{ label => 'time', value => 'user_experience', template => '%.3f',
|
||||
min => 0, unit => 's', label_extra_instance => 1, instance_use => 'key' },
|
||||
],
|
||||
{ label => 'time', template => '%.3f',
|
||||
min => 0, unit => 's', label_extra_instance => 1, instance_use => 'key' }
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ sub new {
|
|||
'instance:s' => { name => 'instance', default => 'layer' },
|
||||
'top:s' => { name => 'top' },
|
||||
'filter:s' => { name => 'filter' },
|
||||
'from:s' => { name => 'from' },
|
||||
'from:s' => { name => 'from' }
|
||||
});
|
||||
|
||||
return $self;
|
||||
|
|
Loading…
Reference in New Issue