From 5d0c89a1bf85cb886ba1179285d5eec5fb1842d6 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 29 May 2020 17:22:56 +0200 Subject: [PATCH] change iplabel performance unit --- apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm b/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm index b8b9160bd..1b8fc0683 100644 --- a/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm +++ b/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm @@ -64,11 +64,11 @@ sub set_counters { ] } }, - { label => 'performance', nlabel => 'kpi.performance.count', set => { + { label => 'performance', nlabel => 'kpi.performance.milliseconds', set => { key_values => [ { name => 'performance', no_value => -1 }, { name => 'display' } ], - output_template => 'performance: %s', + output_template => 'performance: %s ms', perfdatas => [ - { template => '%s', min => 0, label_extra_instance => 1 } + { template => '%s', min => 0, unit => 'ms', label_extra_instance => 1 } ] } } @@ -194,7 +194,7 @@ Can used special variables like: %{status}, %{display} =item B<--warning-*> B<--critical-*> Thresholds. -Can be: 'success-rate' (%) 'sla-availability' (%), 'performance'. +Can be: 'success-rate' (%) 'sla-availability' (%), 'performance' (ms). =back