Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/clusters')
-rw-r--r--app/workers/clusters/integrations/check_prometheus_health_worker.rb (renamed from app/workers/clusters/applications/check_prometheus_health_worker.rb)7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/workers/clusters/applications/check_prometheus_health_worker.rb b/app/workers/clusters/integrations/check_prometheus_health_worker.rb
index 4f85c5c5b7a..0c0d86e975c 100644
--- a/app/workers/clusters/applications/check_prometheus_health_worker.rb
+++ b/app/workers/clusters/integrations/check_prometheus_health_worker.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module Clusters
- module Applications
+ module Integrations
class CheckPrometheusHealthWorker
include ApplicationWorker
@@ -12,7 +12,6 @@ module Clusters
include CronjobQueue
# rubocop:enable Scalability/CronWorkerContext
- queue_namespace :incident_management
feature_category :incident_management
urgency :low
@@ -22,11 +21,11 @@ module Clusters
def perform
demo_project_ids = Gitlab::Monitor::DemoProjects.primary_keys
- clusters = Clusters::Cluster.with_application_prometheus
+ clusters = Clusters::Cluster.with_integration_prometheus
.with_project_http_integrations(demo_project_ids)
# Move to a seperate worker with scoped context if expanded to do work on customer projects
- clusters.each { |cluster| Clusters::Applications::PrometheusHealthCheckService.new(cluster).execute }
+ clusters.each { |cluster| Clusters::Integrations::PrometheusHealthCheckService.new(cluster).execute }
end
end
end