Commit graph

16 commits

Author SHA1 Message Date
GitLab Bot
10052df753 Add latest changes from gitlab-org/gitlab@master 2021-01-29 15:09:40 +00:00
GitLab Bot
999f47e9e6 Add latest changes from gitlab-org/gitlab@master 2020-08-12 12:10:25 +00:00
GitLab Bot
c52b72f577 Add latest changes from gitlab-org/gitlab@master 2020-07-08 12:09:33 +00:00
GitLab Bot
c59765a50a Add latest changes from gitlab-org/gitlab@master 2020-06-24 18:09:03 +00:00
GitLab Bot
0434f38ef1 Add latest changes from gitlab-org/gitlab@master 2020-01-31 18:09:11 +00:00
Sarah Yasonik
bf918b68f6 Support dashboard params for metrics dashboard
https://gitlab.com/gitlab-org/gitlab-ce/issues/62971

Adds support to EnvironmentsController#metrics_dashboard
for the following params: group, title, y_label
These params are used to uniquely identify a panel on
the metrics dashboard.

Metrics are stored in several places, so this adds
utilities to find a specific panel from the database
or filesystem depending on the metric specified.

Also moves some shared utilities into separate classes,
notably default values and errors.
2019-08-07 16:17:35 +00:00
Rémy Coutable
b85b6590e5
Fix and document an RSpec::Parameterized::TableSyntax edge-case
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-20 19:51:26 +01:00
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
Shinya Maeda
e1449df7a2 Fix coding offence 2018-12-04 19:24:21 +09:00
Shinya Maeda
45a5ed6d02 fix wording 2018-12-03 22:01:30 +09:00
Shinya Maeda
bec4740f30 Fix the coding style 2018-12-03 21:47:26 +09:00
Shinya Maeda
dd4a8df4cb Validate enum uniqueness 2018-12-03 20:10:13 +09:00
Kamil Trzciński
8ae169a925 Fix query_series specs 2018-09-05 21:05:40 +02:00
Kamil Trzciński
f5fab097a4 Fix specs 2018-09-05 00:12:38 +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