Commit 18183f40 authored by syasonik's avatar syasonik

Use existing common metrics

parent 7eb796e6
...@@ -13,7 +13,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController ...@@ -13,7 +13,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController
before_action only: [:metrics, :additional_metrics] do before_action only: [:metrics, :additional_metrics] do
push_frontend_feature_flag(:metrics_time_window) push_frontend_feature_flag(:metrics_time_window)
push_frontend_feature_flag(:environment_metrics_use_prometheus_endpoint) push_frontend_feature_flag(:environment_metrics_use_prometheus_endpoint)
push_frontend_feature_flag(:environment_metrics_show_multiple_dashboards)
end end
def index def index
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Fetches the metrics dashboard layout and supplemented the output with DB info. # Fetches the metrics dashboard layout and supplemented the output with DB info.
class MetricsDashboardService class MetricsDashboardService
SYSTEM_DASHBOARD_NAME = 'system_dashboard' SYSTEM_DASHBOARD_NAME = 'common_metrics'
SYSTEM_DASHBOARD_PATH = Rails.root.join('config', 'prometheus', "#{SYSTEM_DASHBOARD_NAME}.yml") SYSTEM_DASHBOARD_PATH = Rails.root.join('config', 'prometheus', "#{SYSTEM_DASHBOARD_NAME}.yml")
def initialize(project) def initialize(project)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment