From 293c05ec4fdec194cf63d5edad86a73642b7162c Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Mon, 12 Oct 2020 13:28:37 +0200
Subject: [PATCH] added more buckets

---
 app/PrometheusExporter.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/PrometheusExporter.php b/app/PrometheusExporter.php
index 4a183420e..a4b89177b 100644
--- a/app/PrometheusExporter.php
+++ b/app/PrometheusExporter.php
@@ -43,7 +43,7 @@ class PrometheusExporter
     public static function Duration($duration, $type)
     {
         $registry = \Prometheus\CollectorRegistry::getDefault();
-        $histogram = $registry->getOrRegisterHistogram('metager', 'request_time', 'Loading Times for different cases', ['type'], [0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.2, 2.4, 2.6, 2.8, 3]);
+        $histogram = $registry->getOrRegisterHistogram('metager', 'request_time', 'Loading Times for different cases', ['type'], [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.2, 2.4, 2.6, 2.8, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20]);
         $histogram->observe($duration, [$type]);
     }
 }
-- 
GitLab