diff options
Diffstat (limited to 'app/controllers/metrics_controller.rb')
-rw-r--r-- | app/controllers/metrics_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/metrics_controller.rb b/app/controllers/metrics_controller.rb index 7191a66fe46..9bcd6f96b34 100644 --- a/app/controllers/metrics_controller.rb +++ b/app/controllers/metrics_controller.rb @@ -1,7 +1,9 @@ class MetricsController < ActionController::Base + include RequiresHealthToken + protect_from_forgery with: :exception + before_action :validate_prometheus_metrics - include RequiresHealthToken def metrics response = "#{metrics_service.health_metrics_text}\n#{metrics_service.prometheus_metrics_text}" |