Track total visits to VSD by week/month
What does this MR do and why?
Record VSD total visits weekly and monthly
Add metrics to track Value streams dashboard total visits weekly and monthly.
related to #384010 (closed)
How to set up and validate locally
- Make sure you have an ultimate license
- Enable the feature flag with
Feature.enable(:group_analytics_dashboards_page)
- Create a group and visit value streams dashboard page using the URL
http://127.0.0.1:3000/groups/GROUP_PATH/-/analytics/dashboards/value_streams_dashboard
- Open rails console and use the following snippet to check if event got recorded:
# This should error out, but still creates a new 'RawUsageData' record
GitlabServicePingWorker.new.perform('triggered_from_cron' => false)
result = RawUsageData.last
# Both should be > 0
result.payload['analytics_counts_visits']['value_streams_dashboard_views_weekly']
result.payload['analytics_counts_visits']['value_streams_dashboard_views_monthly']
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Felipe Cardozo