Skip to content

Metrics: Delete usage in services, finders, etc

Overview

Removal should take place during %16.0 or later.

Category:Metrics code is intertwined with the metrics GitLab reports on itself. Only Category:Metrics should be removed. Similarly, some items named like PrometheusAlert are also used for AlertManagement::Alert and should not be removed.

As part of Monitor: Metrics Deprecation and Removal (&10107 - closed), we want to remove all usages of the Metrics Dashboard part of Category:Metrics. This may be in services, finders, through model associations, etc. The models & data will be removed as part of Metrics: Delete models & database tables/columns (#397142 - closed).

Implementation plan

  1. Delete all service classes made obsolete by:
  2. Delete relevant finder classes no longer in use
  3. Find & remove any remaining usages of metrics dashboard models

Relevant code

The lists below are meant as an aid & may not be exhaustive.

Deletions:

Cleanups:

Edited by Luke Duncalfe