summaryrefslogtreecommitdiff
path: root/lib/gitlab/prometheus/adapter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/prometheus/adapter.rb')
-rw-r--r--lib/gitlab/prometheus/adapter.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/prometheus/adapter.rb b/lib/gitlab/prometheus/adapter.rb
index ed10ef2917f..76e65d29c7a 100644
--- a/lib/gitlab/prometheus/adapter.rb
+++ b/lib/gitlab/prometheus/adapter.rb
@@ -19,6 +19,10 @@ module Gitlab
end
def cluster_prometheus_adapter
+ if cluster&.integration_prometheus
+ return cluster.integration_prometheus
+ end
+
application = cluster&.application_prometheus
application if application&.available?