From 08eaced99f60e3626a284722bde8f076da8e4e90 Mon Sep 17 00:00:00 2001 From: Mikesch-mp Date: Tue, 23 May 2017 14:47:58 +0200 Subject: [PATCH] Add more timeranges --- library/Grafana/ProvidedHook/Grapher.php | 10 +++++++--- module.info | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/library/Grafana/ProvidedHook/Grapher.php b/library/Grafana/ProvidedHook/Grapher.php index 84159ed..bd6ecf0 100644 --- a/library/Grafana/ProvidedHook/Grapher.php +++ b/library/Grafana/ProvidedHook/Grapher.php @@ -43,7 +43,8 @@ class Grapher extends GrapherHook 'Minutes' => array( '5m' => '5 minutes', '15m' => '15 minutes', - '30m' => '30 minutes' + '30m' => '30 minutes', + '45m' => '45 minutes' ), 'Hours' => array( '1h' => '1 hour', @@ -56,15 +57,18 @@ class Grapher extends GrapherHook 'Days' => array ( '2d' => '2 days', '7d' => '7 days', + '14d' => '14 days', '30d' => '30 days', ), 'Months' => array ( '2M' => '2 Month', - '6M' => '6 months' + '6M' => '6 months', + '9M' => '9 months' ), 'Years' => array( '1y' => '1 year', - '2y' => '2 years' + '2y' => '2 years', + '3y' => '3 years' ) ); diff --git a/module.info b/module.info index d2e8f79..6edac08 100644 --- a/module.info +++ b/module.info @@ -1,5 +1,5 @@ Name: Grafana -Version: 1.1.4 +Version: 1.1.5 Depends: monitoring Description: Grafana - A perfdata visualisation module Shows Grafana graphs for captured metrics.