Ensure patch release pressure panels only use the required version metrics
Context
The patch release pressure information is sent to the delivery-metrics via the metrics.rake
task, particularly by sending a POST request to the delivery-metrics Pushgateway with the respective info.
Problem
Because the information is always pushed, each time a new GitLab release is published new and old versions are scrapped by Prometheus, which causes the query to account for older versions:
In this above case, the query should only account for 15.7, 15.6, and 15.5, not 15.4. Having versions outside the policy could affect the information displayed on the Release manager dashboard. For context, this dashboard will be expanded to display information pertinent to the last three releases #2679 (closed)
Proposal
Lets investigate the possible solutions to address this problem. During the Orchestration demo, the following solutions were suggested:
- Adjust the release manager dashboard to account for the three recent versions.
- Implement a
DELETE
endpoint to reset the metric in Prometheus - Restart the delivery-metrics every month - This could have unforeseen consequences.