Commit c0e5c785 authored by syasonik's avatar syasonik

Sync EE with CE

parent a7caf914
...@@ -4,8 +4,15 @@ module EE ...@@ -4,8 +4,15 @@ module EE
module Gitlab module Gitlab
module MetricsDashboard module MetricsDashboard
module Processor module Processor
extend ::Gitlab::Utils::Override
EE_SEQUENCE = [
Stages::AlertsInserter
].freeze
override :sequence
def sequence def sequence
super + [Stages::AlertsInserter] super + EE_SEQUENCE
end end
end end
end end
......
...@@ -25,8 +25,9 @@ module EE ...@@ -25,8 +25,9 @@ module EE
alerts = ::Projects::Prometheus::AlertsFinder alerts = ::Projects::Prometheus::AlertsFinder
.new(project: project, environment: environment) .new(project: project, environment: environment)
.execute .execute
.pluck(:prometheus_metric_id)
@metrics_with_alerts = Set.new(alerts.map(&:prometheus_metric_id)) @metrics_with_alerts = Set.new(alerts)
end end
def alert_path(metric_id, project, environment) def alert_path(metric_id, project, environment)
......
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