summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb')
-rw-r--r--app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb b/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb
index ea9fd2de961..6a24a7308b7 100644
--- a/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb
+++ b/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb
@@ -9,6 +9,8 @@ module Metrics::Dashboard::PrometheusApiProxy
end
def prometheus_proxy
+ return not_found if Feature.enabled?(:remove_monitor_metrics)
+
variable_substitution_result =
proxy_variable_substitution_service.new(proxyable, permit_params).execute