Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/importers/common_metrics_importer.rb')
-rw-r--r--db/importers/common_metrics_importer.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/importers/common_metrics_importer.rb b/db/importers/common_metrics_importer.rb
index 3a150e8fc5f..01fbbd6866b 100644
--- a/db/importers/common_metrics_importer.rb
+++ b/db/importers/common_metrics_importer.rb
@@ -40,6 +40,8 @@ module Importers
end
def execute
+ PrometheusMetric.reset_column_information
+
process_content do |id, attributes|
find_or_build_metric!(id)
.update!(**attributes)