Skip to content

Switch charts to Prometheus API endpoint CE-2

Simon Knox requested to merge prom-api-2 into master

What does this MR do?

This is first part of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27849

  • Add feature flag to frontend
  • if enabled, fetch Dashboard endpoint. Show chart titles and info, but no query data

To enable feature:

echo 'Feature.enable(:environment_metrics_use_prometheus_endpoint)' | bundle exec rails c

Doesn't fetch Prometheus data, so renders empty charts:

Screen_Shot_2019-06-06_at_1.33.15_pm

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/58516

Edited by Jose Ivan Vargas

Merge request reports