Provide Registry Image Pull Statistics

Release notes

Problem to solve

As a user of GitLab Registry, I want to track the images and tags that are being used the least and most frequently, so that I can prioritize working on the most used images and sunset images that have not been pulled.

Intended users

Developers, and anyone developing or maintaining GitLab Registry images.

User experience goal

The user should be able to view statistics on the GitLab Container Registry page that illustrates how often a given image/tag are pulled. (/<repo>/container_registry)

Furthermore, the GET /projects/:id/registry/repositories/:repository_id/tags/:tag_name resource should return statistics, or have a HATEOAS link to those statistics. (https://docs.gitlab.com/ee/api/container_registry.html#get-details-of-a-registry-repository-tag)

Proposal

Further details

It may be beneficial to get a raw log of all the docker pull requests to see what IPs/users are requesting the images.

Permissions and Security

  • Add expected impact to Reporter (20) members

I propose that Reporter and above would have a view into the container statistics.

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Edited by Clete Blackwell II