enhance memory output

This commit is contained in:
garnier-quentin 2020-10-06 09:05:50 +02:00
parent 56132e01cc
commit 33d0bacf55
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ sub set_counters {
}
},
{ label => 'usage-prct', display_ok => 0, nlabel => 'memory.usage.percentage', set => {
key_values => [ { name => 'prct_used' } ],
output_template => 'Ram Used : %.2f %%',
key_values => [ { name => 'prct_used' }, { name => 'used' }, { name => 'free' }, { name => 'prct_free' }, { name => 'total' } ],
closure_custom_output => $self->can('custom_usage_output'),
perfdatas => [
{ label => 'used_prct', template => '%.2f', min => 0, max => 100, unit => '%' }
]