From 3c23c4babd22d8ce86cb3e81a03268797f65a428 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Mon, 12 Oct 2020 13:45:31 +0200 Subject: [PATCH] made all buckets float --- app/PrometheusExporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PrometheusExporter.php b/app/PrometheusExporter.php index a4b89177b..a709bf35a 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.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 = $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->observe($duration, [$type]); } } -- GitLab