Collect usage data for the GitLab Container Registry garbage collection algorithm
Problem to solve
The GitLab Container Registry allows users to build, publish and share Docker images alongside their source code and pipelines. In addition, we provide the ability to run garbage collection to remove unused layers.
However, we are currently not tracking how often it's run, how often it succeeds and how often it fails. Not having this data prevents us from understanding how users are interacting with GitLab and determining if there are any issues.
Intended users
Proposal
Begin to track usage of the garbage collection command and add the data to the Package Dashboard.
Metrics
- Count garbage collection commands run
- Count of successful runs
- Count of runs failed
- Ideally we would capture the error code here and report that as well.
How we will use this data
- We can better understand the relationship between tags being removed via the API and garbage collection running.
- We can understand the success rate and typical causes of failure