Skip to content

Move database events endpoint address to settings

What does this MR do and why?

Related to #408644 (closed).

This adds a database migration to add gitlab_database_collector_hostname column to ApplicationSetting. The setting specifies the hostname for the Snowplow collector that collects only database events, and an existing constant will be moved to that setting.

Since some code depends on the existing constant, the setting will still fall back to the constant if not set. After populating the gitlab_database_collector_hostname setting, the fallback will be removed (or perhaps be set to the gitlab_collector_hostname setting).

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Piotr Skorupa

Merge request reports