stable
Clone or download
Read-only
fix: request #38666 `worker_events` metric is always empty
Issue introduced in 58f6ee073c78bbfe89dde82cd72764d45958f519. To test: 1. Setup the prometheus_metrics controller 2. Shutdown (on purpose, to make it easier to see the changes) the workers with `systemctl stop tuleap-workers` 3. Create or update some artifacts in order to create some async events 4. Go to the webpage `/metrics` and look for the `worker_events` metric Change-Id: I9ee5f09d8183cc7882192160485537185545f36a
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/prometheus_metrics/include/MetricsCollector.php | +4 | −10 | Go to diff View file |
M | plugins/prometheus_metrics/include/MetricsController.php | +3 | −8 | Go to diff View file |
M | plugins/prometheus_metrics/include/prometheus_metricsPlugin.php | +1 | −9 | Go to diff View file |
M | plugins/prometheus_metrics/tests/unit/MetricsControllerTest.php | +2 | −6 | Go to diff View file |