Commit graph

20 commits

Author SHA1 Message Date
GitLab Bot
e72b53e81e Add latest changes from gitlab-org/gitlab@master 2020-10-02 18:08:56 +00:00
GitLab Bot
4e06ca9e7d Add latest changes from gitlab-org/gitlab@master 2020-09-02 18:10:40 +00:00
GitLab Bot
39a4ea6124 Add latest changes from gitlab-org/gitlab@master 2020-08-24 21:10:17 +00:00
GitLab Bot
53758cb2ca Add latest changes from gitlab-org/gitlab@master 2020-08-01 00:09:45 +00:00
GitLab Bot
04338021ad Add latest changes from gitlab-org/gitlab@master 2020-07-31 18:09:37 +00:00
GitLab Bot
c52b72f577 Add latest changes from gitlab-org/gitlab@master 2020-07-08 12:09:33 +00:00
GitLab Bot
0434f38ef1 Add latest changes from gitlab-org/gitlab@master 2020-01-31 18:09:11 +00:00
GitLab Bot
3fc9a8e695 Add latest changes from gitlab-org/gitlab@master 2019-11-15 12:06:12 +00:00
GitLab Bot
b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +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
Ryan Cobb
9aad4174e0 Refactor common metrics importer
This refactors common metrics importer for two reasons. 1. To create a
new pattern that can be followed by future importers that will minimize
dependency collision and 2. To allow EE to more easily extend
dependencies.
2019-07-09 17:02:07 -06:00
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00: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
Joshua Lambert
3b9ab3f50f Add NGINX 0.16.0 and above metrics 2018-12-17 23:48:55 +00:00
Kamil Trzciński
5e06c37745 Fix legend 2018-09-05 15:36:47 +02:00
Kamil Trzciński
8645c92e36 Fix PrometheusMetric model 2018-09-04 23:09:46 +02:00
Kamil Trzciński
cf5f50544c Update code-style 2018-09-04 15:01:26 +02:00
Kamil Trzciński
5646f3f551 Improve model validation 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