From 57fbc8c43a3ad5f0c9dc26c8973ae710f87ac86c Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Mon, 12 Oct 2020 13:48:06 +0200
Subject: [PATCH] added 30 s bucket

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

diff --git a/app/PrometheusExporter.php b/app/PrometheusExporter.php
index a709bf35a..399b3757d 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.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.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 15.0, 20.0]);
+        $histogram = $registry->getOrRegisterHistogram('metager', 'request_time', 'Loading Times for different cases', ['type'], [0.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.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 15.0, 20.0, 30.0, 35.0]);
         $histogram->observe($duration, [$type]);
     }
 }
-- 
GitLab