PI Instrumentation: Page views on Usage quotas page for self-managed
Description
As GitLab, we want to instrument page views for the Group and Project Usage quotas page in the self-managed environment using a Redis counter. This will allow us to track and monitor the number of page views for the Usage quotas page.
Additionally, we need to add the Usage quotas page to the metrics dictionary located at metrics.gitlab.com. This will ensure that the Usage quotas page is included in our overall metrics and analytics system for monitoring and analysis purposes.
Acceptance Criteria
Redis Counters for Page Views of Groups Usage Quotas Page:
- The metric YAML file for page views of the Groups Usage Quotas Page should be added.
- The page view should be tracked in the Usage Quotas controller.
- Test coverage should be added to ensure proper tracking of page views for the Groups Usage Quotas Page.
Redis Counters for Page Views of Project Usage Quotas Page:
- The metric YAML file for page views of the Project Usage Quotas Page should be added.
- The page view should be tracked in the Usage Quotas controller.
- Test coverage should be added to ensure proper tracking of page views for the Project Usage Quotas Page.
Technical Requirements
The metric YAML file should be added, page views should be tracked in the respective controllers, and appropriate test coverage should be implemented for both the Groups Usage Quotas Page and the Project Usage Quotas Page.
Docs:
Similar MRs:
Design Requirements
N/A
Impact Assessment
By adding Redis counters and properly tracking page views, we can gain insights into the usage patterns of these pages. This information can be used for monitoring and analysis purposes.
❓
Open for PM input - How do we want to aggregate the metrics
7 days
metric,28 days
metric,all time
metric? - Collect data daily?(if a 7 days metric) weekly?(if monthly metric)
- Fo which tiers should we have this metric?
EE, free, premium, ultimate?