Commit graph

19 commits

Author SHA1 Message Date
GitLab Bot
7515ec41c5 Add latest changes from gitlab-org/gitlab@master 2019-10-28 18:06:15 +00:00
GitLab Bot
543081566d Add latest changes from gitlab-org/gitlab@master 2019-10-25 03:06:02 +00:00
GitLab Bot
664c4c7b49 Add latest changes from gitlab-org/gitlab@master 2019-10-21 12:06:14 +00:00
GitLab Bot
25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
GitLab Bot
9e27f0d920 Add latest changes from gitlab-org/gitlab@master 2019-10-01 12:05:59 +00:00
GitLab Bot
94611567bd Add latest changes from gitlab-org/gitlab@master 2019-09-30 09:06:31 +00:00
GitLab Bot
20450649ca Add latest changes from gitlab-org/gitlab@master 2019-09-27 09:06:26 +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
Robert Speicher
bfe1df68ac
Copy dashboard fixture schema from EE 2019-07-24 15:28:14 -05:00
Sarah Yasonik
f49dd76a44 Add embedding flag and filter to CPU/Mem
This commits adds support for metrics dashboards
for embedding. If the flag 'embedded' is provided
to the environments/id/metrics_dashboard endpoint,
the response will be suitable for embedding in
issues or other content.

This is a precursor for support for embedding
metrics in GFM.
2019-06-20 14:06:18 +00:00
syasonik
54dd44030b Expose prometheus endpoint per metric in dashboard
Adds a new stage to dashboard processesing step for the
EnvironmentsController::metrics_dashboard endpoint.

Allows the front end to avoid generating the endpoint
unitutive string mutations.
2019-06-06 11:43:50 +01:00
Sarah Yasonik
552a3d2fd9 Update metrics dashboard API to load yml from repo
Updates the EnvironmentController#metrics_dashboard endpoint
to support a "dashboard" param, which can be used to specify
the filepath of a dashboard configuration from a project
repository. Dashboard configurations are expected to be
stored in .gitlab/dashboards/.

Updates dashboard post-processing steps to exclude custom
metrics, which should only display on the system dashboard.
2019-05-01 10:16:03 +00:00
syasonik
4a5c48c47c Move MetricsDashboard to Metrics::Dashboard 2019-04-25 13:35:05 +08:00
syasonik
ed87159a71 Finish updating dashboard schema 2019-04-24 18:23:04 +08:00
syasonik
d9b83ff36a Utilize renamed dashboard ordering attribute 2019-04-24 18:23:03 +08:00
rpereira2
f029c3dd39 Make query or query_range required in metrics
Either the query or query_range attribute needs to be present in the
metrics yml. The yml is invalid if both are present or neither is
present.
2019-04-24 18:23:03 +08:00
rpereira2
c2818d6b23 Add schema validation spec
Validate the schema of the dashboard that is loaded by
Gitlab::MetricsDashboard::Service.
2019-04-24 18:23:03 +08:00
rpereira2
0007a42a7b Correct the order of groups and panels
- Order groups by descending order of priority.
- Order panels by descending order of weight.
- Perform sorting after adding project/custom metrics.
2019-04-24 18:23:03 +08:00
syasonik
1596e55560 Cleanup misnamed or unnecessary files 2019-04-24 18:23:03 +08:00