Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
afe64dc9
Commit
afe64dc9
authored
Nov 05, 2021
by
Hordur Freyr Yngvason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cron for prometheus integration health check
See
https://gitlab.com/gitlab-org/gitlab/-/issues/322581
parent
4debfa65
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
app/workers/all_queues.yml
app/workers/all_queues.yml
+9
-9
app/workers/clusters/integrations/check_prometheus_health_worker.rb
...s/clusters/integrations/check_prometheus_health_worker.rb
+0
-1
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+3
-0
No files found.
app/workers/all_queues.yml
View file @
afe64dc9
...
...
@@ -246,6 +246,15 @@
:weight:
1
:idempotent:
true
:tags: []
-
:name: cronjob:clusters_integrations_check_prometheus_health
:worker_name: Clusters::Integrations::CheckPrometheusHealthWorker
:feature_category: :incident_management
:has_external_dependencies:
true
:urgency: :low
:resource_boundary: :unknown
:weight:
1
:idempotent:
true
:tags: []
-
:name: cronjob:container_expiration_policy
:worker_name: ContainerExpirationPolicyWorker
:feature_category: :container_registry
...
...
@@ -1087,15 +1096,6 @@
:idempotent:
:tags:
- :needs_own_queue
-
:name: incident_management:clusters_integrations_check_prometheus_health
:worker_name: Clusters::Integrations::CheckPrometheusHealthWorker
:feature_category: :incident_management
:has_external_dependencies:
true
:urgency: :low
:resource_boundary: :unknown
:weight:
2
:idempotent:
true
:tags: []
-
:name: incident_management:incident_management_add_severity_system_note
:worker_name: IncidentManagement::AddSeveritySystemNoteWorker
:feature_category: :incident_management
...
...
app/workers/clusters/integrations/check_prometheus_health_worker.rb
View file @
afe64dc9
...
...
@@ -12,7 +12,6 @@ module Clusters
include
CronjobQueue
# rubocop:enable Scalability/CronWorkerContext
queue_namespace
:incident_management
feature_category
:incident_management
urgency
:low
...
...
config/initializers/1_settings.rb
View file @
afe64dc9
...
...
@@ -591,6 +591,9 @@ Settings.cron_jobs['batched_background_migrations_worker']['job_class'] = 'Datab
Settings
.
cron_jobs
[
'issues_reschedule_stuck_issue_rebalances'
]
||=
Settingslogic
.
new
({})
Settings
.
cron_jobs
[
'issues_reschedule_stuck_issue_rebalances'
][
'cron'
]
||=
'* 0/15 * * *'
Settings
.
cron_jobs
[
'issues_reschedule_stuck_issue_rebalances'
][
'job_class'
]
=
'Issues::RescheduleStuckIssueRebalancesWorker'
Settings
.
cron_jobs
[
'clusters_integrations_check_prometheus_health_worker'
]
||=
Settingslogic
.
new
({})
Settings
.
cron_jobs
[
'clusters_integrations_check_prometheus_health_worker'
][
'cron'
]
||=
'0 * * * *'
Settings
.
cron_jobs
[
'clusters_integrations_check_prometheus_health_worker'
][
'job_class'
]
=
'Clusters::Integrations::CheckPrometheusHealthWorker'
Gitlab
.
ee
do
Settings
.
cron_jobs
[
'analytics_devops_adoption_create_all_snapshots_worker'
]
||=
Settingslogic
.
new
({})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment