Skip to content
Snippets Groups Projects
Commit 57fbc8c4 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added 30 s bucket

parent 3c23c4ba
No related branches found
No related tags found
2 merge requests!1712Development,!1696Development
...@@ -43,7 +43,7 @@ class PrometheusExporter ...@@ -43,7 +43,7 @@ class PrometheusExporter
public static function Duration($duration, $type) public static function Duration($duration, $type)
{ {
$registry = \Prometheus\CollectorRegistry::getDefault(); $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]); $histogram->observe($duration, [$type]);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment