gitlab-exporter 11.13.1 → 11.15.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5402d26356c57a44d17cfe4bc0671a18db3c80b7fabc3452446f57a58dd26f0
4
- data.tar.gz: 70998dd64701d73c13aabb21bba32d66010cb316a60edaf251572950a6408dff
3
+ metadata.gz: cc907a56d817f1dffc5afdf08211684b354ec21c5fdee7abdfa759bce75de833
4
+ data.tar.gz: 13d79cf16be242b746e609ced0166420c1e1a4ccd2aebd34805bc1a8fd35736a
5
5
  SHA512:
6
- metadata.gz: 2f81d4d8b7394e8f58169a02886371ff0c70b0137511270cb26169473079b05b4407b8decd4ee376579606be9c2379b16494c8f2c32264a62c6d7bb9711624fb
7
- data.tar.gz: 82f705c5933bd7671010c2336dc2bff6d06dc90957c662ebf3c19af9a7dc46b6905ff7da4f5074eb7e4f44ce5a2c9d18f060e115e039303a8adbb007f6d4b7ae
6
+ metadata.gz: 69fce170e3b138cc0f2431fedcfb4b3485414cd9620dbbd6d9d56b13f4d1cc10d3406a7036a9b8555f12073ce968bdf896e070aabbd8500ed11cffbe0861a8a5
7
+ data.tar.gz: 5101ebb164656364dee6a6053c0e6128488e72d674df7ea15326c5b80090a565a138dd27fcf959057a94258b992f7785052ab32be3fbbd38986465262512d4a7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-exporter (11.13.1)
4
+ gitlab-exporter (11.15.1)
5
5
  connection_pool (= 2.2.5)
6
6
  faraday (~> 1.8.0)
7
7
  pg (= 1.2.3)
@@ -107,4 +107,4 @@ DEPENDENCIES
107
107
  webrick (~> 1.7)
108
108
 
109
109
  BUNDLED WITH
110
- 2.2.29
110
+ 2.2.22
@@ -135,8 +135,8 @@ module GitLab
135
135
  container_repositories_migration_pending: {
136
136
  select: :container_repositories,
137
137
  where: <<~SQL
138
- migration_state <> 'import_done'
139
- AND created_at < '2022-01-23 00:00:00'
138
+ migration_state <> 'import_done'
139
+ AND created_at < '2022-01-23 00:00:00'
140
140
  SQL
141
141
  },
142
142
  container_repositories_pre_importing: {
@@ -166,26 +166,103 @@ module GitLab
166
166
  container_repositories_migration_all_free: {
167
167
  select: :container_repositories,
168
168
  where: <<~SQL
169
- migration_plan IN ('free', 'early_adopter')
169
+ migration_plan IN ('free', 'early_adopter')
170
170
  OR migration_plan IS NULL
171
171
  SQL
172
172
  },
173
173
  container_repositories_migration_pending_free: {
174
174
  select: :container_repositories,
175
175
  where: <<~SQL
176
- migration_state <> 'import_done'
176
+ migration_state <> 'import_done'
177
177
  AND created_at < '2022-01-23 00:00:00'
178
- AND (migration_plan IN ('free', 'early_adopter')
178
+ AND (migration_plan IN ('free', 'early_adopter')
179
179
  OR migration_plan IS NULL)
180
180
  SQL
181
181
  },
182
182
  container_repositories_import_done_free: {
183
183
  select: :container_repositories,
184
184
  where: <<~SQL
185
- migration_state = 'import_done'
186
- AND (migration_plan IN ('free', 'early_adopter')
185
+ migration_state = 'import_done'
186
+ AND (migration_plan IN ('free', 'early_adopter')
187
187
  OR migration_plan IS NULL)
188
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 '20 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
210
+ },
211
+ container_repositories_skipped_not_in_plan: {
212
+ select: :container_repositories,
213
+ where: <<~SQL
214
+ migration_state = 'import_skipped'
215
+ AND migration_skipped_reason = 0
216
+ SQL
217
+ },
218
+ container_repositories_skipped_too_many_retries: {
219
+ select: :container_repositories,
220
+ where: <<~SQL
221
+ migration_state = 'import_skipped'
222
+ AND migration_skipped_reason = 1
223
+ SQL
224
+ },
225
+ container_repositories_skipped_too_many_tags: {
226
+ select: :container_repositories,
227
+ where: <<~SQL
228
+ migration_state = 'import_skipped'
229
+ AND migration_skipped_reason = 2
230
+ SQL
231
+ },
232
+ container_repositories_skipped_deny_list: {
233
+ select: :container_repositories,
234
+ where: <<~SQL
235
+ migration_state = 'import_skipped'
236
+ AND migration_skipped_reason = 3
237
+ SQL
238
+ },
239
+ container_repositories_skipped_canceled: {
240
+ select: :container_repositories,
241
+ where: <<~SQL
242
+ migration_state = 'import_skipped'
243
+ AND migration_skipped_reason IN (4, 8)
244
+ SQL
245
+ },
246
+ container_repositories_skipped_not_found: {
247
+ select: :container_repositories,
248
+ where: <<~SQL
249
+ migration_state = 'import_skipped'
250
+ AND migration_skipped_reason = 5
251
+ SQL
252
+ },
253
+ container_repositories_skipped_native: {
254
+ select: :container_repositories,
255
+ where: <<~SQL
256
+ migration_state = 'import_skipped'
257
+ AND migration_skipped_reason = 6
258
+ SQL
259
+ },
260
+ container_repositories_skipped_force_canceled: {
261
+ select: :container_repositories,
262
+ where: <<~SQL
263
+ migration_state = 'import_skipped'
264
+ AND migration_skipped_reason = 7
265
+ SQL
189
266
  }
190
267
  }.freeze
191
268
 
@@ -1,5 +1,5 @@
1
1
  module GitLab
2
2
  module Exporter
3
- VERSION = "11.13.1".freeze
3
+ VERSION = "11.15.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.13.1
4
+ version: 11.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Carranza
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.0.3.1
242
+ rubygems_version: 3.1.6
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: GitLab metrics exporter