gitlab-exporter 12.1.1 → 13.0.0

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: f94ff4332c26d23722a980cda4185e84dcecf96e01ce58bf5794d73523efdb2e
4
- data.tar.gz: 5b650ba2d57d2a445cd077f0d93daaf4f635815579339281be70698215a67f87
3
+ metadata.gz: 83e761659c465160f92d3473b6d3f816066807a0126764e2dbba29a65d998273
4
+ data.tar.gz: 68a0b79fe5aa6e44df1c073c09d75e2f1f6e20aacb377ec8303ea1b28aca79e0
5
5
  SHA512:
6
- metadata.gz: ed42fc0e5869f7c7be443f29ded7bb4ded2242a1612042f8212baba438aeafbd3019f1011c5b46cc246cb94a8ca7887508b2c100baf05bebc8b3b2b4d9afca60
7
- data.tar.gz: bac63ad5e89bfaaeb20d7483e27c89bdfa9945494f3f1a44e1daf023f1d0ee43d57b4e42e9110656f898f8806a341a9d51cc6ef5afdf1905c14a2a5640f87414
6
+ metadata.gz: 35394994c429efd84c43718f955d4dded45f9133894fc2da2ddeeba2446ab74c1a2018b831c1c03fe38abc8d25e48ec9455e8a4371493f897b033ae47cb88460
7
+ data.tar.gz: 2143e9b485304140c3b7f5139f152eab9355b8bdad1cef7c4ea4cd03b5ca114a557bbb3daeba558f4ac8aac30a01827187682df6be4725799919702ce178acf8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-exporter (12.1.1)
4
+ gitlab-exporter (13.0.0)
5
5
  connection_pool (= 2.2.5)
6
6
  faraday (~> 1.8.0)
7
7
  pg (= 1.2.3)
@@ -8,7 +8,6 @@ module GitLab
8
8
  # This class works under the assumption you do COUNT(*) queries, define
9
9
  # queries in the QUERIES constant. If in doubt how these work, read
10
10
  # #construct_query
11
- # rubocop:disable Metrics/ClassLength
12
11
  class RowCountCollector < Base
13
12
  # We ignore mirrors with a next_execution_timestamp before
14
13
  # 2020-03-28 because this is when we stopped processing mirrors
@@ -118,138 +117,6 @@ module GitLab
118
117
  visibility_level: {},
119
118
  root: { definition: "(parent_id IS NULL)" }
120
119
  }
121
- },
122
- container_repositories_migration_pending: {
123
- select: :container_repositories,
124
- where: <<~SQL
125
- migration_state <> 'import_done'
126
- AND created_at < '2022-08-17 00:00:00'
127
- SQL
128
- },
129
- container_repositories_pre_importing: {
130
- select: :container_repositories,
131
- where: "migration_state = 'pre_importing'"
132
- },
133
- container_repositories_importing: {
134
- select: :container_repositories,
135
- where: "migration_state = 'importing'"
136
- },
137
- container_repositories_pre_import_done: {
138
- select: :container_repositories,
139
- where: "migration_state = 'pre_import_done'"
140
- },
141
- container_repositories_import_done: {
142
- select: :container_repositories,
143
- where: "migration_state = 'import_done'"
144
- },
145
- container_repositories_import_skipped: {
146
- select: :container_repositories,
147
- where: "migration_state = 'import_skipped'"
148
- },
149
- container_repositories_import_aborted: {
150
- select: :container_repositories,
151
- where: "migration_state = 'import_aborted'"
152
- },
153
- container_repositories_migration_all_free: {
154
- select: :container_repositories,
155
- where: <<~SQL
156
- migration_plan IN ('free', 'early_adopter')
157
- OR migration_plan IS NULL
158
- SQL
159
- },
160
- container_repositories_migration_pending_free: {
161
- select: :container_repositories,
162
- where: <<~SQL
163
- migration_state <> 'import_done'
164
- AND created_at < '2022-08-17 00:00:00'
165
- AND (migration_plan IN ('free', 'early_adopter')
166
- OR migration_plan IS NULL)
167
- SQL
168
- },
169
- container_repositories_import_done_free: {
170
- select: :container_repositories,
171
- where: <<~SQL
172
- (migration_state = 'import_done' OR created_at >= '2022-08-17 00:00:00')
173
- AND (migration_plan IN ('free', 'early_adopter')
174
- OR migration_plan IS NULL)
175
- SQL
176
- },
177
- container_repositories_stalled_pre_importing: {
178
- select: :container_repositories,
179
- where: <<~SQL
180
- migration_state = 'pre_importing'
181
- AND (COALESCE(migration_pre_import_started_at, TO_TIMESTAMP(0)) < (now() - INTERVAL '20 minutes'))
182
- SQL
183
- },
184
- container_repositories_stalled_pre_import_done: {
185
- select: :container_repositories,
186
- where: <<~SQL
187
- migration_state = 'pre_import_done'
188
- AND (COALESCE(migration_pre_import_done_at, TO_TIMESTAMP(0)) < (now() - INTERVAL '5 minutes'))
189
- SQL
190
- },
191
- container_repositories_stalled_importing: {
192
- select: :container_repositories,
193
- where: <<~SQL
194
- migration_state = 'importing'
195
- AND (COALESCE(migration_import_started_at, TO_TIMESTAMP(0)) < (now() - INTERVAL '5 minutes'))
196
- SQL
197
- },
198
- container_repositories_skipped_not_in_plan: {
199
- select: :container_repositories,
200
- where: <<~SQL
201
- migration_state = 'import_skipped'
202
- AND migration_skipped_reason = 0
203
- SQL
204
- },
205
- container_repositories_skipped_too_many_retries: {
206
- select: :container_repositories,
207
- where: <<~SQL
208
- migration_state = 'import_skipped'
209
- AND migration_skipped_reason = 1
210
- SQL
211
- },
212
- container_repositories_skipped_too_many_tags: {
213
- select: :container_repositories,
214
- where: <<~SQL
215
- migration_state = 'import_skipped'
216
- AND migration_skipped_reason = 2
217
- SQL
218
- },
219
- container_repositories_skipped_deny_list: {
220
- select: :container_repositories,
221
- where: <<~SQL
222
- migration_state = 'import_skipped'
223
- AND migration_skipped_reason = 3
224
- SQL
225
- },
226
- container_repositories_skipped_canceled: {
227
- select: :container_repositories,
228
- where: <<~SQL
229
- migration_state = 'import_skipped'
230
- AND migration_skipped_reason IN (4, 8)
231
- SQL
232
- },
233
- container_repositories_skipped_not_found: {
234
- select: :container_repositories,
235
- where: <<~SQL
236
- migration_state = 'import_skipped'
237
- AND migration_skipped_reason = 5
238
- SQL
239
- },
240
- container_repositories_skipped_native: {
241
- select: :container_repositories,
242
- where: <<~SQL
243
- migration_state = 'import_skipped'
244
- AND migration_skipped_reason = 6
245
- SQL
246
- },
247
- container_repositories_skipped_force_canceled: {
248
- select: :container_repositories,
249
- where: <<~SQL
250
- migration_state = 'import_skipped'
251
- AND migration_skipped_reason = 7
252
- SQL
253
120
  }
254
121
  }.freeze
255
122
 
@@ -315,7 +182,6 @@ module GitLab
315
182
  query_string << ";"
316
183
  end
317
184
  end
318
- # rubocop:enable Metrics/ClassLength
319
185
 
320
186
  # The prober which is called when gathering metrics
321
187
  class RowCountProber
@@ -1,5 +1,5 @@
1
1
  module GitLab
2
2
  module Exporter
3
- VERSION = "12.1.1".freeze
3
+ VERSION = "13.0.0".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: 12.1.1
4
+ version: 13.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Carranza