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

added more buckets

parent 6ba2274c
No related branches found
No related tags found
2 merge requests!1712Development,!1696Development
......@@ -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]);
}
}
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