remove useless code

This commit is contained in:
garnier-quentin 2020-06-15 15:49:47 +02:00
parent 5f17d7e804
commit e7079f43ba
1 changed files with 13 additions and 23 deletions

View File

@ -44,7 +44,7 @@ sub set_counters {
key_values => [ { name => 'StorePercentUsage' }, { name => 'display' } ],
output_template => 'store usage: %.2f %%',
perfdatas => [
{ value => 'StorePercentUsage', template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 }
{ template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 }
]
}
},
@ -52,7 +52,7 @@ sub set_counters {
key_values => [ { name => 'TempPercentUsage' }, { name => 'display' } ],
output_template => 'temporary usage: %.2f %%',
perfdatas => [
{ value => 'TempPercentUsage', template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 }
{ template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 }
]
}
},
@ -60,7 +60,7 @@ sub set_counters {
key_values => [ { name => 'MemoryPercentUsage' }, { name => 'display' } ],
output_template => 'memory usage: %.2f %%',
perfdatas => [
{ value => 'MemoryPercentUsage', template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 }
{ template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 }
]
}
}
@ -72,8 +72,7 @@ sub set_counters {
key_values => [ { name => 'AverageEnqueueTime' }, { name => 'display' } ],
output_template => 'average time messages remained enqueued: %.3f ms',
perfdatas => [
{ value => 'AverageEnqueueTime',
template => '%.3f', unit => 'ms', min => 0, label_extra_instance => 1 }
{ template => '%.3f', unit => 'ms', min => 0, label_extra_instance => 1 }
]
}
},
@ -81,8 +80,7 @@ sub set_counters {
key_values => [ { name => 'ConsumerCount' }, { name => 'display' } ],
output_template => 'consumers connected: %s',
perfdatas => [
{ value => 'ConsumerCount',
template => '%s', min => 0, label_extra_instance => 1 }
{ template => '%s', min => 0, label_extra_instance => 1 }
]
}
},
@ -90,8 +88,7 @@ sub set_counters {
key_values => [ { name => 'ProducerCount' }, { name => 'display' } ],
output_template => 'producers connected: %s',
perfdatas => [
{ value => 'ProducerCount',
template => '%s', min => 0, label_extra_instance => 1 }
{ template => '%s', min => 0, label_extra_instance => 1 }
]
}
},
@ -99,8 +96,7 @@ sub set_counters {
key_values => [ { name => 'MemoryPercentUsage' }, { name => 'display' } ],
output_template => 'memory usage: %.2f %%',
perfdatas => [
{ value => 'MemoryPercentUsage',
template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 }
{ template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 }
]
}
},
@ -108,8 +104,7 @@ sub set_counters {
key_values => [ { name => 'QueueSize' }, { name => 'display' } ],
output_template => 'queue size: %s',
perfdatas => [
{ value => 'QueueSize',
template => '%s', min => 0, label_extra_instance => 1 }
{ template => '%s', min => 0, label_extra_instance => 1 }
]
}
},
@ -117,8 +112,7 @@ sub set_counters {
key_values => [ { name => 'EnqueueCount', diff => 1 }, { name => 'display' } ],
output_template => 'messages enqueued: %s',
perfdatas => [
{ value => 'EnqueueCount',
template => '%s', min => 0, label_extra_instance => 1 }
{ template => '%s', min => 0, label_extra_instance => 1 }
]
}
},
@ -126,8 +120,7 @@ sub set_counters {
key_values => [ { name => 'DequeueCount', diff => 1 }, { name => 'display' } ],
output_template => 'messages dequeued: %s',
perfdatas => [
{ value => 'DequeueCount',
template => '%s', min => 0, label_extra_instance => 1 }
{ template => '%s', min => 0, label_extra_instance => 1 }
]
}
},
@ -135,8 +128,7 @@ sub set_counters {
key_values => [ { name => 'ExpiredCount', diff => 1 }, { name => 'display' } ],
output_template => 'messages expired: %s',
perfdatas => [
{ value => 'ExpiredCount',
template => '%s', min => 0, label_extra_instance => 1 }
{ template => '%s', min => 0, label_extra_instance => 1 }
]
}
},
@ -144,8 +136,7 @@ sub set_counters {
key_values => [ { name => 'InFlightCount', diff => 1 }, { name => 'display' } ],
output_template => 'messages in-flighted: %s',
perfdatas => [
{ value => 'InFlightCount',
template => '%s', min => 0, label_extra_instance => 1 }
{ template => '%s', min => 0, label_extra_instance => 1 }
]
}
},
@ -154,8 +145,7 @@ sub set_counters {
output_template => 'average messages size: %s %s',
output_change_bytes => 1,
perfdatas => [
{ value => 'AverageMessageSize',
template => '%s', unit => 'B', min => 0, label_extra_instance => 1 }
{ template => '%s', unit => 'B', min => 0, label_extra_instance => 1 }
]
}
}