Page MenuHomePhabricator

Disable GitLab 18.0 data collection
Closed, ResolvedPublic

Description

Noticed this when logging into admin mode on GitLab just now:

Starting with 18.0, GitLab will collect event-level product usage data from Self-Managed and Dedicated instances — while ensuring privacy, transparency, and customer control. GitLab administrators can turn off the data collection toggle before any data is collected in version 18.0. For more information about this change and how you can opt out, see the documentation.

Seems like something we should disable.

Disabling:

https://gitlab.wikimedia.org/help/administration/settings/event_data.md#enable-or-disable-event-level-data-collection

Didn't find it in the settings API at a glance, but I'm guessing it's there somewhere.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
disable usage_pingrepos/releng/gitlab-settings!77jeltodisable-usage-pingmain
Customize query in GitLab

Event Timeline

Thanks for opening the task! I also saw that message when upgrading the instances in T394382: Upgrade GitLab to major version 18. I also checked the settings API back then but did not find any API endpoint for the event collection. So I disabled it manually when doing the upgrade, see

https://gitlab.devtools.wmcloud.org/admin/application_settings/metrics_and_profiling
https://gitlab.wikimedia.org/admin/application_settings/metrics_and_profiling#js-product-usage-data-settings
https://gitlab-replica-a.wikimedia.org/admin/application_settings/metrics_and_profiling#js-product-usage-data-settings
https://gitlab-replica-b.wikimedia.org/admin/application_settings/metrics_and_profiling#js-product-usage-data-settings

However I noticed Enable Service Ping is still enabled. Described as To help improve GitLab and its user experience, GitLab periodically collects usage information. There is a setting-api endpoint for that and we might want to disable that as well. The data contained in this "ping" is quite broad. I'll upload a change for that.

Thanks for investigating! usage_ping change LGTM.

Mentioned in SAL (#wikimedia-releng) [2025-08-11T08:03:30Z] <jelto> update gitlab-settings on all instances - T401352

Jelto claimed this task.
Jelto triaged this task as Medium priority.

usage_ping and event collection are disabled on all instances now. I'll check the settings-api occasionally for the event collection setting so we can also persist this setting into code. But for now this should be fine.

I'll resolve the task.