Skip to content

Add custom metrics form to dashboard

Adriel Santiago requested to merge 4452-in-line-chart-designer-mvc into master

What does this MR do?

Allows adding custom metrics from the metrics dashboard:

2019-05-03_03.21.09

CE Backport

Local Testing

  • Enable the metrics dashboard Using Prometheus with GDK
  • Find the project id of your autodevops project on the Project > Details Page just beneath the project name:
project id
Screen_Shot_2019-05-06_at_1.06.21_AM
  • Run the following commands in the rails console (rails c) replacing <PROJECT_ID> with the project Id found in the previous step:
p = PrometheusService.find_by(project_id: <PROJECT_ID>)
p.update_attributes!(active: true)
  • Ensure you have a Premium license or above installed and that you are logged in as an admin or have maintainer level access to your autodevops project.

  • You should now be able to add custom metrics in the project settings found at Settings > Integrations > Prometheus and also from the metrics dashboard.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #4452 (closed)

Edited by Adriel Santiago

Merge request reports