summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/project_services/prometheus_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project_services/prometheus_service.rb b/app/models/project_services/prometheus_service.rb
index 3bf44c1ab2b..e540a2c646a 100644
--- a/app/models/project_services/prometheus_service.rb
+++ b/app/models/project_services/prometheus_service.rb
@@ -129,6 +129,7 @@ class PrometheusService < MonitoringService
end
def prometheus_installed?
+ return false if template?
project.clusters.enabled.any? { |cluster| cluster.application_prometheus&.installed? }
end