fix instance label

This commit is contained in:
garnier-quentin 2020-07-06 15:37:29 +02:00
parent a2321bc7da
commit 1f201211fa
1 changed files with 6 additions and 6 deletions

View File

@ -99,7 +99,7 @@ sub set_counters {
output_template => 'read: %s %s/s', output_template => 'read: %s %s/s',
output_change_bytes => 1, output_change_bytes => 1,
perfdatas => [ perfdatas => [
{ template => '%d', unit => 'B/s' } { template => '%d', unit => 'B/s', label_extra_instance => 1 }
] ]
} }
}, },
@ -108,7 +108,7 @@ sub set_counters {
output_template => 'write: %s %s/s', output_template => 'write: %s %s/s',
output_change_bytes => 1, output_change_bytes => 1,
perfdatas => [ perfdatas => [
{ template => '%d', unit => 'B/s', min => 0 } { template => '%d', unit => 'B/s', min => 0, label_extra_instance => 1 }
] ]
} }
}, },
@ -116,7 +116,7 @@ sub set_counters {
key_values => [ { name => 'read_iops' } ], key_values => [ { name => 'read_iops' } ],
output_template => 'read iops: %s', output_template => 'read iops: %s',
perfdatas => [ perfdatas => [
{ template => '%s', unit => 'iops', min => 0 } { template => '%s', unit => 'iops', min => 0, label_extra_instance => 1 }
] ]
} }
}, },
@ -124,7 +124,7 @@ sub set_counters {
key_values => [ { name => 'write_iops' } ], key_values => [ { name => 'write_iops' } ],
output_template => 'write iops: %s', output_template => 'write iops: %s',
perfdatas => [ perfdatas => [
{ template => '%s', unit => 'iops', min => 0 } { template => '%s', unit => 'iops', min => 0, label_extra_instance => 1 }
] ]
} }
}, },
@ -132,7 +132,7 @@ sub set_counters {
key_values => [ { name => 'read_latency' } ], key_values => [ { name => 'read_latency' } ],
output_template => 'read latency: %s ms', output_template => 'read latency: %s ms',
perfdatas => [ perfdatas => [
{ template => '%s', unit => 'ms', min => 0 } { template => '%s', unit => 'ms', min => 0, label_extra_instance => 1 }
] ]
} }
}, },
@ -140,7 +140,7 @@ sub set_counters {
key_values => [ { name => 'write_latency' } ], key_values => [ { name => 'write_latency' } ],
output_template => 'write latency: %s ms', output_template => 'write latency: %s ms',
perfdatas => [ perfdatas => [
{ template => '%s', unit => 'ms', min => 0 } { template => '%s', unit => 'ms', min => 0, label_extra_instance => 1 }
] ]
} }
} }