stable

Clone or download

Read-only

Add 'browser' label to the http_responses_total metric

This information can be retrieved by Prometheus via the /metrics endpoint. Reviewers wanting to check out the /metrics page needs to have configured their Tuleap instance to have access to a Redis instance and to have configured the prometheus_metrics plugin. The tuleap/prometheus-client library has been bumped to 1.1.0 to include a bugfix and gives us the opportunity to detect changes in the structure of the metrics (e.g. the addition of a new label). Closes request #16147: Add a label on the web hits metric to determine which browser was used Change-Id: Ic9958d67fd301ad3111c2e7735289022b63e64a4

Modified Files

Name
M plugins/prometheus_metrics/include/MetricsController.php +4 −2 Go to diff View file
M src/common/Request/FrontRouter.php +5 −4 Go to diff View file
M src/common/Request/RequestInstrumentation.php +15 −10 Go to diff View file
M src/common/include/URLVerification.class.php +2 −1 Go to diff View file
M src/composer.lock +12 −11 Go to diff View file
M src/www/api/index.php +10 −3 Go to diff View file
M src/www/include/pre.php +4 −1 Go to diff View file
M src/www/soap/index.php +4 −1 Go to diff View file
M tests/unit/common/Request/FrontRouterTest.php +10 −9 Go to diff View file