debian-forge-composer/internal/prometheus
Gianluca Zuccarelli 8756ea717d prometheus: middleware to record 5xx errors
Create a custom middleware function
to measure 5xx requests for all composer
& worker routes and not just the `/composer`
endpoint. The result is a prometheus metric
that contains info on the request status code,
path & method.

A helper function has been added to clean the
dynamic parameters in the path routes to reduce
metric cardinality
2022-11-30 11:14:29 +01:00
..
constants.go prometheus: move constants to a single file 2022-11-30 11:14:29 +01:00
helpers.go prometheus: middleware to record 5xx errors 2022-11-30 11:14:29 +01:00
http_metrics.go prometheus: move constants to a single file 2022-11-30 11:14:29 +01:00
job_metrics.go prometheus: move constants to a single file 2022-11-30 11:14:29 +01:00
middleware.go prometheus: middleware to record 5xx errors 2022-11-30 11:14:29 +01:00
status_metrics.go prometheus: add status metrics 2022-11-30 11:14:29 +01:00