Commit dda417bf authored by Pawel Chojnacki's avatar Pawel Chojnacki

Require prometheus only for querying endpoints

parent 1952fafb
......@@ -2,7 +2,7 @@ module Projects
module Prometheus
class MetricsController < Projects::ApplicationController
before_action :authorize_admin_project!
before_action :require_prometheus_metrics!
before_action :require_prometheus_metrics!, only: [:active_common, :validate_query]
def active_common
respond_to do |format|
......
......@@ -18,7 +18,7 @@ module Gitlab
private
def groups_data
metrics_groups = groups_with_active_metrics(Gitlab::Prometheus::MetricGroup.all)
metrics_groups = groups_with_active_metrics(Gitlab::Prometheus::MetricGroup.common_metrics)
lookup = active_series_lookup(metrics_groups)
groups = {}
......
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