metrics: further adjustments.

- reduce cardinality
- added push/pull
This commit is contained in:
RhodeCode Admin 2022-10-14 22:05:39 +02:00
parent b4d077597a
commit 8e00aec5f4
3 changed files with 14 additions and 5 deletions

View file

@ -182,7 +182,7 @@ def error_handler(exception, request):
statsd = request.registry.statsd
if statsd and base_response.status_code > 499:
statsd.incr('rhodecode_exception')
statsd.incr('rhodecode_exception', tags=["code:{}".format(base_response.status_code)])
error_explanation = base_response.explanation or str(base_response)
if base_response.status_code == 404: