Skip to content

Add a GitLab dedicated metric

Michał Wielich requested to merge michold-dedicated-metric into master

What does this MR do and why?

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/361211

We want to add a metric that makes it possible to distinguish the GitLab Dedicated instances.

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

  1. Make sure that all of the database migrations have been ran: bundle exec rake db:migrate
  2. Open the rails console
  3. Generate a new service ping: sp = Gitlab::Usage::ServicePingReport.for(output: :all_metrics_values)
  4. Make sure that the new metric has been added into it - this should not raise an error: sp.fetch("gitlab_dedicated")

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 Michał Wielich

Merge request reports