summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/metrics/dashboard
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@12-7-stable-eeGitLab Bot2020-01-211-0/+18
|
* Add latest changes from gitlab-org/gitlab@12-6-stable-eeGitLab Bot2019-12-201-0/+6
|
* Add latest changes from gitlab-org/gitlab@12-5-stable-eeGitLab Bot2019-11-195-25/+189
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-182-13/+34
|
* Support query parameters in metrics embedsSarah Yasonik2019-08-151-2/+10
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/62971 Adds support for embedding specific charts from the metrics dashboard. Expected parameters are dashboard, title, group, and y_label.
* Support dashboard params for metrics dashboardSarah Yasonik2019-08-073-3/+161
| | | | | | | | | | | | | | | | 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.
* Move BaseService to Services directorySarah Yasonik2019-07-294-178/+1
| | | | | | | | In preparation for embedding specific metrics in issues https://gitlab.com/gitlab-org/gitlab-ce/issues/62971, this commit moves the BaseService for metrics dashboards to a new services subdirectory. This is purely for the sake of organization and maintainability.
* Prefer `flat_map` over `map` + `flatten` in specsPeter Leitzen2019-07-241-3/+3
| | | | | Although `flat_map` is equivalent to `map` + `flatten(1)` (note the level 1) we can apply this same refactoring to all cases.
* Expose metrics element for FE consumptionSarah Yasonik2019-07-101-0/+56
| | | | | | | | | | | Adds GFM Pipline filters to insert a placeholder in the generated HTML from GFM based on the presence of a metrics dashboard link. The front end should look for the class 'js-render-metrics' to determine if it should replace the element with metrics charts. The data element 'data-dashboard-url' should be the endpoint the front end should hit in order to obtain a dashboard layout in order to appropriately render the charts.
* Add permission check to dashboardsSarah Yasonik2019-06-274-8/+27
| | | | | | Adds permission checks to the metrics_dashboard endpoint. Users with role of Reporter or above should have access to view the metrics for a given project.
* Add embedding flag and filter to CPU/MemSarah Yasonik2019-06-202-1/+37
| | | | | | | | | | | 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.
* Specify a dropdown name for dashboardsSarah Yasonik2019-06-143-2/+41
|
* Switch errors to inherit from a base classprom-api-1syasonik2019-06-062-16/+17
| | | | | | | | | | Error classes associated with individual stages of dashboard processing tend to have very long names. As dashboard post-processing includes more steps, we will likely need to handle more error cases. Refactoring to have all errors inherit from a specific base class will help accommodate this and keep the code more readable.
* Address rubocop errorssyasonik2019-06-061-1/+4
|
* Expose prometheus endpoint per metric in dashboardsyasonik2019-06-064-5/+30
| | | | | | | | 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.
* Update metrics dashboard API to load yml from repoSarah Yasonik2019-05-015-47/+172
| | | | | | | | | | | 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.
* Move dashboard param to initialize method60383-setup-dashboard-endpointsyasonik2019-04-251-2/+2
|
* Prefer safe_load and deep_symbolize_keyssyasonik2019-04-251-2/+2
|
* Move MetricsDashboard to Metrics::Dashboardsyasonik2019-04-252-0/+136