Commit graph

6 commits

Author SHA1 Message Date
rpereira2
2cd7b78391 Correct ordering of metrics
Correct the ordering of metrics on performance dashboard. Before common
metrics were moved into the DB, metric groups were ordered by the
priority defined in the common_metrics.yml file.
This commit adds a priority to each metric group in the PrometheusMetric
model.
It also combines title, priority and required_metrics into one frozen
GROUP_DETAILS hash so that the code is clearer.
This can be done since there is a fixed set of groups which are not
configurable.
2018-12-21 16:41:58 +05:30
Kamil Trzciński
fe8b842a75 Use Rails.root for CommonMetricsImporter 2018-09-11 17:40:32 +02:00
Kamil Trzciński
bafe3a6d6a Fix common_metrics.yml 2018-09-06 11:43:12 +02:00
Kamil Trzciński
ce3d98f749 Fix static analysis 2018-09-04 12:19:23 +02:00
Kamil Trzciński
e6d2465d97 Add # frozen_string_literal: true 2018-09-04 12:19:23 +02:00
Kamil Trzciński
0a9d771bcb Import common metrics into database.
This MR backports PrometheusMetric model to CE
and adds: common, identifier to figure out what kind of metric is used.
2018-09-04 12:19:22 +02:00