Add RedisHLL counter for creating dashboards
What does this MR do and why?
- Adds hook to commit push to count when a project adds a dashboard for the first time or creates the directory in which to put dashboards.
- This will allow us to count the number of projects that are using analytics dashboards.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Create a new file in
.gitlab/analytics/dashboards
. - Ensure the value of
Gitlab::UsageDataCounters::HLLRedisCounter.unique_events(event_names: 'project_created_analytics_dashboard', start_date: 3.weeks.ago, end_date: 3.weeks.from_now)
has incremented. - Create another file within the same directory (or a subdirectory), and ensure that the same value has not incremented. (It should only increment once per project).
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 Max Woolf