Add a cube analytics table visualization to product analytics
What does this MR do and why?
This MR adds a cube analytics table visualization to be used by the Product Analytics dashboards as described in #382910 (closed).
Note: This change is hidden behind a default off feature flag. See the setup instructions for more details.
Screenshots or screen recordings
How to set up and validate locally
- You need to setup the product analytics devkit if you haven't already done so. https://gitlab.com/gitlab-org/analytics-section/product-analytics/devkit
- Enable the feature flag:
echo "Feature.enable(:product_analytics_internal_preview)" | rails c
. - Visit the dashboard page of any project and validate that it renders:
http://localhost:3000/gitlab-org/gitlab-shell/-/product_analytics/dashboards/
This will show an empty dashboard if you have no events in clickhouse. To generate events:
- You can use a browser extension like tapermonkey + this userscript to generate events.
- Using the userscript above you need to change the host to your devkit's Jitsu URL and use your Jitsu's client key.
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.
Related to #382910 (closed)
Edited by Jiaan Louw