Metric to track the number of security/patch releases
Summary
Create a metric to track the number of security/patch releases we do.
Proposal
There is already a packages_tagging_total
metric, which currently counts auto_deploy
packages.
As suggested in #2752 (comment 1257486458), we can:
extend the package tagging rake task to invoke
ReleaseTools::Metrics::Client.new.inc("packages_tagging_total", labels: :auto_deploy)
with a proper label (i.e.:security
and:regular
or something like that).
The following can be added below lib/tasks/release.rake#L114
if SharedStatus.security_release?
ReleaseTools::Metrics::Client.new.inc("packages_tagging_total", labels: :security)
else
ReleaseTools::Metrics::Client.new.inc("packages_tagging_total", labels: :regular)
end
Exit Criteria
-
Implement metric gitlab-org/release-tools!2195 (merged) -
Add visualization on release toil dashboard gitlab-com/runbooks!5575 (merged)
Edited by Jenny Kim