Commit a78d6462 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

implemented a query counter

parent 0d18a426
......@@ -125,6 +125,8 @@ class MetaGerSearch extends Controller
$registry = \Prometheus\CollectorRegistry::getDefault();
$counter = $registry->getOrRegisterCounter('metager', 'result_counter', 'counts total number of returned results', []);
$counter = $registry->getOrRegisterCounter('metager', 'query_counter', 'counts total number of search queries', []);
return $resultpage;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment