+ Fix ms too long

This commit is contained in:
garnier-quentin 2017-03-02 14:24:58 +01:00
parent 0f656320f8
commit 121c1aef5a
1 changed files with 5 additions and 5 deletions

View File

@ -173,7 +173,7 @@ sub set_counters {
per_second => 1,
output_template => 'Read IOPs : %.2f', output_error_template => "Read IOPs : %s",
perfdatas => [
{ label => 'read_iops', value => 'clusVolumeStatsIOsRead_per_second', template => '%.2f',
{ label => 'read_iops', value => 'clusVolumeStatsIOsRead_per_second', template => '%.2f',
unit => 'iops', min => 0, label_extra_instance => 1, instance_use => 'display_absolute' },
],
}
@ -191,9 +191,9 @@ sub set_counters {
{ label => 'read-latency', set => {
key_values => [ { name => 'clusVolumeStatsIoLatencyRead', diff => 1 }, { name => 'display' } ],
per_second => 1,
output_template => 'Read Latency : %s ms', output_error_template => "Read Latency : %s",
output_template => 'Read Latency : %.2f ms', output_error_template => "Read Latency : %s",
perfdatas => [
{ label => 'read_latency', value => 'clusVolumeStatsIoLatencyRead_absolute', template => '%s',
{ label => 'read_latency', value => 'clusVolumeStatsIoLatencyRead_absolute', template => '%.2f',
unit => 'ms', min => 0, label_extra_instance => 1, instance_use => 'display_absolute' },
],
}
@ -201,9 +201,9 @@ sub set_counters {
{ label => 'write-latency', set => {
key_values => [ { name => 'clusVolumeStatsIoLatencyWrite', diff => 1 }, { name => 'display' } ],
per_second => 1,
output_template => 'Write Latency : %s ms', output_error_template => "Write Latency : %s",
output_template => 'Write Latency : %.2f ms', output_error_template => "Write Latency : %s",
perfdatas => [
{ label => 'write_latency', value => 'clusVolumeStatsIoLatencyWrite_absolute', template => '%s',
{ label => 'write_latency', value => 'clusVolumeStatsIoLatencyWrite_absolute', template => '%.2f',
unit => 'ms', min => 0, label_extra_instance => 1, instance_use => 'display_absolute' },
],
}