diff options
author | Adriel Santiago <adriel@gitlab.com> | 2019-05-27 16:18:07 -0400 |
---|---|---|
committer | Adriel Santiago <adriel@gitlab.com> | 2019-06-03 13:58:49 -0400 |
commit | 8d8be57c38b4d04f6f5f6448a796972c0f1ac717 (patch) | |
tree | 778e67811c60ce2b2ea7e20ca4423dc22ff2b0ea | |
parent | 2ad5b30b6c02a3e3f84275121a709f5de75dac48 (diff) | |
download | gitlab-ce-ce-5456-add-cluster-health-alert-frontend.tar.gz |
Add frontend support for cluster health alertsce-5456-add-cluster-health-alert-frontend
Adds a new query text input for metric alerts
-rw-r--r-- | app/controllers/projects/clusters_controller.rb | 4 | ||||
-rw-r--r-- | app/controllers/projects/environments_controller.rb | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb index cb02581da37..98cd66cf6f9 100644 --- a/app/controllers/projects/clusters_controller.rb +++ b/app/controllers/projects/clusters_controller.rb @@ -4,6 +4,10 @@ class Projects::ClustersController < Clusters::ClustersController prepend_before_action :project before_action :repository + before_action do + push_frontend_feature_flag(:prometheus_computed_alerts) + end + layout 'project' private diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb index c342e1c80b0..681b49e0bd7 100644 --- a/app/controllers/projects/environments_controller.rb +++ b/app/controllers/projects/environments_controller.rb @@ -15,6 +15,7 @@ class Projects::EnvironmentsController < Projects::ApplicationController push_frontend_feature_flag(:environment_metrics_use_prometheus_endpoint) push_frontend_feature_flag(:environment_metrics_show_multiple_dashboards) push_frontend_feature_flag(:grafana_dashboard_link) + push_frontend_feature_flag(:prometheus_computed_alerts) end def index |