summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpereira2 <rpereira@gitlab.com>2019-04-11 20:09:58 +0530
committersyasonik <syasonik@gitlab.com>2019-04-24 18:23:03 +0800
commitcad7a7bb24e16513101f89792379ce9a1cbe3a04 (patch)
tree853786222a67839828bf1596347e21e8e3b7ccf4
parentd056d9d4b78230d16bdda2557434f50bc929a657 (diff)
downloadgitlab-ce-cad7a7bb24e16513101f89792379ce9a1cbe3a04.tar.gz
Change the schema of the common_metrics.yml
- Change it to the new dashboard syntax.
-rw-r--r--db/importers/common_metrics_importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/importers/common_metrics_importer.rb b/db/importers/common_metrics_importer.rb
index 195bde8f34a..f40be12719a 100644
--- a/db/importers/common_metrics_importer.rb
+++ b/db/importers/common_metrics_importer.rb
@@ -38,7 +38,7 @@ module Importers
attr_reader :content
def initialize(filename = 'common_metrics.yml')
- @content = YAML.load_file(Rails.root.join('config', 'prometheus', filename))
+ @content = YAML.load_file(Rails.root.join('config', 'prometheus', filename)).first
end
def execute