From 24c094c3697e9fc2c0cb492f8e3bc319542fd3e0 Mon Sep 17 00:00:00 2001
From: qgarnier <garnier.quentin@gmail.com>
Date: Wed, 23 Feb 2022 11:49:57 +0100
Subject: [PATCH] (plugin) apps::monitoring::netdata::restapi - help get-charts
 (#3505)

---
 apps/monitoring/netdata/restapi/mode/getchart.pm | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/apps/monitoring/netdata/restapi/mode/getchart.pm b/apps/monitoring/netdata/restapi/mode/getchart.pm
index 4860551ed..457a96cb0 100644
--- a/apps/monitoring/netdata/restapi/mode/getchart.pm
+++ b/apps/monitoring/netdata/restapi/mode/getchart.pm
@@ -84,10 +84,10 @@ sub new {
     bless $self, $class;
 
     $options{options}->add_options(arguments => {
-          'chart-name:s'        => { name => 'chart_name' },
-          'chart-period:s'      => { name => 'chart_period', default => '300' },
-          'chart-statistics:s'  => { name => 'chart_statistics', default => 'average' },
-          'filter-metric:s'     => { name => 'filter_metric' }
+          'chart-name:s'       => { name => 'chart_name' },
+          'chart-period:s'     => { name => 'chart_period', default => '300' },
+          'chart-statistics:s' => { name => 'chart_statistics', default => 'average' },
+          'filter-metric:s'    => { name => 'filter_metric' }
     });
 
     return $self;
@@ -169,7 +169,7 @@ This option is mandatory
 The period in seconds on which the values are calculated
 Default: 300
 
-=item B<--chart-statistic>
+=item B<--chart-statistics>
 
 The statistic calculation method used to parse the collected data.
 Can be : average, sum, min, max
@@ -188,7 +188,6 @@ Warning threshold (global to all the collected metrics)
 
 Critical threshold (global to all the collected metrics)
 
-
 =back
 
 =cut