Commit graph

8 commits

Author SHA1 Message Date
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