gitlab-exporter 11.12.0 → 11.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitlab_exporter/database/row_count.rb +45 -0
- data/lib/gitlab_exporter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1df01fb9af6b719ede7d27727599d47dcfd46baf27fd4b31c20540803340011
|
4
|
+
data.tar.gz: 90513cdcb659dc6e08f00b90d1042df60c14854d65a90a5603270e2b06324452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bf8914ed4a7ac133c5cef0f34b5a49307d84b3c95eece363ea627d0e80ecb65e976c01ccb73cd58f4e611654d583c099bd10b6944d78b1dbd95308c98d61c70
|
7
|
+
data.tar.gz: ee65ee08b42d0c1b4313d72202d6849c9d9e6e45124a87eab4f0c66d8aebd360d4212a85b4889940399908045fba07fc0eb1798688939ad7c35b44c28d12dae2
|
data/Gemfile.lock
CHANGED
@@ -162,6 +162,51 @@ module GitLab
|
|
162
162
|
container_repositories_import_aborted: {
|
163
163
|
select: :container_repositories,
|
164
164
|
where: "migration_state = 'import_aborted'"
|
165
|
+
},
|
166
|
+
container_repositories_migration_all_free: {
|
167
|
+
select: :container_repositories,
|
168
|
+
where: <<~SQL
|
169
|
+
migration_plan IN ('free', 'early_adopter')
|
170
|
+
OR migration_plan IS NULL
|
171
|
+
SQL
|
172
|
+
},
|
173
|
+
container_repositories_migration_pending_free: {
|
174
|
+
select: :container_repositories,
|
175
|
+
where: <<~SQL
|
176
|
+
migration_state <> 'import_done'
|
177
|
+
AND created_at < '2022-01-23 00:00:00'
|
178
|
+
AND (migration_plan IN ('free', 'early_adopter')
|
179
|
+
OR migration_plan IS NULL)
|
180
|
+
SQL
|
181
|
+
},
|
182
|
+
container_repositories_import_done_free: {
|
183
|
+
select: :container_repositories,
|
184
|
+
where: <<~SQL
|
185
|
+
migration_state = 'import_done'
|
186
|
+
AND (migration_plan IN ('free', 'early_adopter')
|
187
|
+
OR migration_plan IS NULL)
|
188
|
+
SQL
|
189
|
+
},
|
190
|
+
container_repositories_stalled_pre_importing: {
|
191
|
+
select: :container_repositories,
|
192
|
+
where: <<~SQL
|
193
|
+
migration_state = 'pre_importing'
|
194
|
+
AND (COALESCE(migration_pre_import_started_at, '01-01-1970') < (now() - INTERVAL '10 minutes'))
|
195
|
+
SQL
|
196
|
+
},
|
197
|
+
container_repositories_stalled_pre_import_done: {
|
198
|
+
select: :container_repositories,
|
199
|
+
where: <<~SQL
|
200
|
+
migration_state = 'pre_import_done'
|
201
|
+
AND (COALESCE(migration_pre_import_done_at, '01-01-1970') < (now() - INTERVAL '5 minutes'))
|
202
|
+
SQL
|
203
|
+
},
|
204
|
+
container_repositories_stalled_importing: {
|
205
|
+
select: :container_repositories,
|
206
|
+
where: <<~SQL
|
207
|
+
migration_state = 'importing'
|
208
|
+
AND (COALESCE(migration_import_started_at, '01-01-1970') < (now() - INTERVAL '5 minutes'))
|
209
|
+
SQL
|
165
210
|
}
|
166
211
|
}.freeze
|
167
212
|
|