Container Registry: Process webhook notifications for manifest delete events
Context
The epic Container Registry GMAU: Track usage (&8213) proposes adding user-level data for the GitLab Container Registry. This data would help drive prioritization and investment in the Container Registry category.
The high-level plan for delivering this was outlined in https://gitlab.com/gitlab-org/gitlab/-/issues/364730#note_1058520288. This specific issue is part of Container Registry AMAU - Process data (&9234), which targets the "Process" stage of the outlined implementation plan.
Task
As described in https://gitlab.com/gitlab-org/gitlab/-/issues/364730#note_1058520288, the first step is to process the already emitted (by the registry) and consumed (by Rails) registry webhook notifications for manifest delete requests. This needs to be done on the Rails side.
These notifications already include the type of event, the target container repository, and the username. So they have all that Rails needs to consume and increment the respective (new) counters to track usage.
Plan
needs refining needs investigation
For scalability reasons this should be implemented with Redis counters, similar to how it was done for package registry events in Implement redis based package events tracking (#275942 - closed). Since this was done a few years ago, we should make sure this is still the best option. We should also involve Product Analysts in this conversation (see https://gitlab.com/gitlab-org/gitlab/-/issues/364730#note_1027217479).