Instrument self-managed data for Manage:Import PI
Identify what data is needed and instrument getting the data from self-managed instances for the Importers Performance Indicator (fka. the North Star Metric): Percentage of new projects that are imported
Proposal
- Determine whether new import project metrics are added to usage ping
- If not, add new import project metrics to usage ping
Technical Implementation
We already have total number of projects here: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/usage_data.rb#L133
And projects imported from GitHub: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/usage_data.rb#L134
My (@dennis) suggestion would be to add an additional usage metric, e.g., projects_imported: count(Project.where.not(import_type: nil))
.
From that point we can create a Sisense dashboard to compare projects_imported
against total projects
.
Definition of done
- We are able to query data in Sisense on our usage ping data containing information about new import metric.
Edited by Dennis Tang