From 7d4d2fed8a3ab79e8656c438490b7dd909a329ca Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 3 Aug 2021 14:28:47 +0200 Subject: [PATCH] enh(jvm/jmx): change some metrics name --- centreon/common/jvm/mode/classcount.pm | 4 ++-- centreon/common/jvm/mode/gcusage.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/centreon/common/jvm/mode/classcount.pm b/centreon/common/jvm/mode/classcount.pm index ba20abe4f..f12e92c91 100644 --- a/centreon/common/jvm/mode/classcount.pm +++ b/centreon/common/jvm/mode/classcount.pm @@ -48,7 +48,7 @@ sub set_counters { ] } }, - { label => 'loaded', nlabel => 'class.loaded.total.count', set => { + { label => 'loaded', nlabel => 'class.loaded.count', set => { key_values => [ { name => 'TotalLoadedClassCount', diff => 1 } ], output_template => 'loaded: %s', perfdatas => [ @@ -56,7 +56,7 @@ sub set_counters { ] } }, - { label => 'unloaded', nlabel => 'class.unloaded.total.count', set => { + { label => 'unloaded', nlabel => 'class.unloaded.count', set => { key_values => [ { name => 'UnloadedClassCount', diff => 1 } ], output_template => 'unloaded: %s', perfdatas => [ diff --git a/centreon/common/jvm/mode/gcusage.pm b/centreon/common/jvm/mode/gcusage.pm index 40753e825..c5962bcb5 100644 --- a/centreon/common/jvm/mode/gcusage.pm +++ b/centreon/common/jvm/mode/gcusage.pm @@ -40,7 +40,7 @@ sub set_counters { ]; $self->{maps_counters}->{gc} = [ - { label => 'time', nlabel => 'gc.collection.elapsed_time.milliseconds', set => { + { label => 'time', nlabel => 'gc.collection.time.elapsed.milliseconds', set => { key_values => [ { name => 'time', diff => 1 }, { name => 'display' } ], output_template => 'collection time: %s ms', perfdatas => [