Migrate container registry tracking to internal event tracking
In this issue, we want to migrate our existing tracking in Container Registry from Snowplow and Redis/RedisHLL as they are now deprecated and will be replaced by Internal Events Tracking.
Here is the migration guide: https://docs.gitlab.com/ee/development/internal_analytics/internal_event_instrumentation/migration.html
From the migration guide:
Tracking events directly via Snowplow, Redis/RedisHLL is deprecated but won’t be removed in the foreseeable future. While we encourage you to migrate to Internal Event tracking the deprecated methods will continue to work for existing events and metrics.
Note that our current tracking still works and there is no date yet as to when they will remove it. But it might be good to migrate when we can to not use a deprecated system.
Here are our current metrics:
- create_repository_deploy_token
- create_repository_user
- delete_repository_deploy_token
- delete_repository_user
- delete_tag_deploy_token
- delete_tag_user
- push_repository_deploy_token
- push_repository_user
- push_tag_deploy_token
- push_tag_user
- delete_manifest
- writes_user_weekly
- writes_user_monthly
Note: When weekly or monthly is not specified, then both are available.