gitlab-exporter 15.3.0 → 15.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/gitlab_exporter/database/ci_builds.rb +12 -12
- data/lib/gitlab_exporter/database/zoekt.rb +1 -1
- data/lib/gitlab_exporter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c61164d89cc44981f70108c4eaadeeb8d9f356015598a95c428ec67dd381bbb1
|
4
|
+
data.tar.gz: ab36b32cea281e70a028c92f9e4b405177235b74b40304ce780426fdca4f4d90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45bdb2c955d049602010459e5f80d54fc509b22dfece9119a88a77ae84165190eb29018e47d3545de858a58c8084da64474dfa0ea6c81d6e431fa0db8e6aba88
|
7
|
+
data.tar.gz: 27567e14f6cc14dfaf3eeb43e5d30b3060fdaa2ede6f396b4b8d2902721d07210409c7ec20e6f10582ff413a8b1162be73b2cca55601a0db6f7ad43497c5db47
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gitlab-exporter (15.
|
4
|
+
gitlab-exporter (15.5.0)
|
5
5
|
connection_pool (= 2.2.5)
|
6
6
|
deep_merge (~> 1.2.2)
|
7
7
|
faraday (>= 1.8.0, <= 2.8.1)
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
faraday-net_http (3.0.2)
|
30
30
|
mustermann (2.0.2)
|
31
31
|
ruby2_keywords (~> 0.0.1)
|
32
|
-
nio4r (2.
|
32
|
+
nio4r (2.7.4)
|
33
33
|
parallel (1.20.1)
|
34
34
|
parser (3.0.0.0)
|
35
35
|
ast (~> 2.4.1)
|
@@ -37,7 +37,7 @@ GEM
|
|
37
37
|
puma (5.6.8)
|
38
38
|
nio4r (~> 2.0)
|
39
39
|
quantile (0.2.1)
|
40
|
-
rack (2.2.
|
40
|
+
rack (2.2.15)
|
41
41
|
rack-protection (2.2.4)
|
42
42
|
rack
|
43
43
|
rainbow (3.0.0)
|
@@ -81,9 +81,9 @@ GEM
|
|
81
81
|
rack (~> 2.2)
|
82
82
|
rack-protection (= 2.2.4)
|
83
83
|
tilt (~> 2.0)
|
84
|
-
tilt (2.0
|
84
|
+
tilt (2.6.0)
|
85
85
|
unicode-display_width (1.7.0)
|
86
|
-
webrick (1.
|
86
|
+
webrick (1.9.1)
|
87
87
|
|
88
88
|
PLATFORMS
|
89
89
|
ruby
|
@@ -78,7 +78,7 @@ module GitLab
|
|
78
78
|
projects.namespace_id,
|
79
79
|
projects.mirror,
|
80
80
|
projects.mirror_trigger_builds,
|
81
|
-
|
81
|
+
p_ci_pipelines.pipeline_schedule_id,
|
82
82
|
p_ci_builds.trigger_request_id,
|
83
83
|
(COALESCE(namespaces.shared_runners_minutes_limit, application_settings.shared_runners_minutes, 0) = 0 OR
|
84
84
|
COALESCE(namespace_statistics.shared_runners_seconds, 0) < COALESCE(namespaces.shared_runners_minutes_limit, application_settings.shared_runners_minutes, 0) * 60) as has_minutes,
|
@@ -88,8 +88,8 @@ module GitLab
|
|
88
88
|
ON ci_runners.id = p_ci_builds.runner_id
|
89
89
|
JOIN projects
|
90
90
|
ON projects.id = p_ci_builds.project_id
|
91
|
-
JOIN
|
92
|
-
ON
|
91
|
+
JOIN p_ci_pipelines
|
92
|
+
ON p_ci_pipelines.id = p_ci_builds.commit_id
|
93
93
|
JOIN namespaces
|
94
94
|
ON namespaces.id = projects.namespace_id
|
95
95
|
LEFT JOIN namespace_statistics
|
@@ -106,7 +106,7 @@ module GitLab
|
|
106
106
|
projects.namespace_id,
|
107
107
|
projects.mirror,
|
108
108
|
projects.mirror_trigger_builds,
|
109
|
-
|
109
|
+
p_ci_pipelines.pipeline_schedule_id,
|
110
110
|
p_ci_builds.trigger_request_id,
|
111
111
|
namespaces.shared_runners_minutes_limit,
|
112
112
|
namespace_statistics.shared_runners_seconds,
|
@@ -119,7 +119,7 @@ module GitLab
|
|
119
119
|
p_ci_builds.runner_id,
|
120
120
|
ci_runners.runner_type,
|
121
121
|
projects.namespace_id,
|
122
|
-
|
122
|
+
p_ci_pipelines.pipeline_schedule_id,
|
123
123
|
p_ci_builds.trigger_request_id,
|
124
124
|
COUNT(*) AS count
|
125
125
|
FROM p_ci_builds
|
@@ -127,8 +127,8 @@ module GitLab
|
|
127
127
|
ON ci_runners.id = p_ci_builds.runner_id
|
128
128
|
JOIN projects
|
129
129
|
ON projects.id = p_ci_builds.project_id
|
130
|
-
JOIN
|
131
|
-
ON
|
130
|
+
JOIN p_ci_pipelines
|
131
|
+
ON p_ci_pipelines.id = p_ci_builds.commit_id
|
132
132
|
WHERE p_ci_builds.type = 'Ci::Build'
|
133
133
|
AND p_ci_builds.status = 'running'
|
134
134
|
-- The created_at filter has been introduced for performance reasons only
|
@@ -138,7 +138,7 @@ module GitLab
|
|
138
138
|
p_ci_builds.runner_id,
|
139
139
|
ci_runners.runner_type,
|
140
140
|
projects.namespace_id,
|
141
|
-
|
141
|
+
p_ci_pipelines.pipeline_schedule_id,
|
142
142
|
p_ci_builds.trigger_request_id
|
143
143
|
SQL
|
144
144
|
|
@@ -154,13 +154,13 @@ module GitLab
|
|
154
154
|
FROM p_ci_builds
|
155
155
|
JOIN ci_build_trace_chunks
|
156
156
|
ON ci_build_trace_chunks.build_id = p_ci_builds.id
|
157
|
-
LEFT JOIN
|
158
|
-
ON
|
159
|
-
AND
|
157
|
+
LEFT JOIN p_ci_job_artifacts
|
158
|
+
ON p_ci_job_artifacts.job_id = p_ci_builds.id
|
159
|
+
AND p_ci_job_artifacts.file_type = 3
|
160
160
|
WHERE p_ci_builds.type = 'Ci::Build'
|
161
161
|
AND p_ci_builds.status IN ('success', 'failed', 'canceled')
|
162
162
|
AND p_ci_builds.finished_at < '%s'
|
163
|
-
AND
|
163
|
+
AND p_ci_job_artifacts.job_id IS NULL
|
164
164
|
SQL
|
165
165
|
|
166
166
|
STATUS_CREATED = "created".freeze
|
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: 15.
|
4
|
+
version: 15.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Carranza
|
@@ -282,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
282
|
- !ruby/object:Gem::Version
|
283
283
|
version: '0'
|
284
284
|
requirements: []
|
285
|
-
rubygems_version: 3.
|
285
|
+
rubygems_version: 3.5.22
|
286
286
|
signing_key:
|
287
287
|
specification_version: 4
|
288
288
|
summary: GitLab metrics exporter
|