Commit b78c370a authored by Adriel Santiago's avatar Adriel Santiago Committed by Mike Greiling

Add frontend support for cluster health alerts

Adds a new query text input for metric alerts
parent 7d47ec54
...@@ -4,6 +4,10 @@ class Projects::ClustersController < Clusters::ClustersController ...@@ -4,6 +4,10 @@ class Projects::ClustersController < Clusters::ClustersController
prepend_before_action :project prepend_before_action :project
before_action :repository before_action :repository
before_action do
push_frontend_feature_flag(:prometheus_computed_alerts)
end
layout 'project' layout 'project'
private private
......
...@@ -15,6 +15,7 @@ class Projects::EnvironmentsController < Projects::ApplicationController ...@@ -15,6 +15,7 @@ class Projects::EnvironmentsController < Projects::ApplicationController
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) push_frontend_feature_flag(:environment_metrics_show_multiple_dashboards)
push_frontend_feature_flag(:grafana_dashboard_link) push_frontend_feature_flag(:grafana_dashboard_link)
push_frontend_feature_flag(:prometheus_computed_alerts)
end end
def index def index
......
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