gitlab-exporter 17.1.0 → 17.1.1
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 +1 -1
- data/config/gitlab-exporter.yml.example +3 -3
- data/lib/gitlab_exporter/version.rb +1 -1
- data/spec/config_spec.rb +36 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50fbeb1ab763a918c65648dcb9d400b724b15c46ff74512a226291d8d1b47a32
|
|
4
|
+
data.tar.gz: e80d1246a12289f9a117f91c4821bb779849b2bb3df22bdfe16063074031c804
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d7174c179fc0cbb08c5caea1171be487a5005e1aa85817dc8f8a1495beaa92e03195a6bac17f9e60196649ded0bb8c0e18f42cfd797920e3cc2203cddfb4581
|
|
7
|
+
data.tar.gz: b1867eb94ccdd9fd44f79ac0e1278bb184c9923bb4e65cb4575c87dd3ec68ea9f6f753c27d2266c5f9a9510efa9d3873bd9702c48005310d97bb3394e26878c2
|
data/Gemfile.lock
CHANGED
|
@@ -77,9 +77,9 @@ probes:
|
|
|
77
77
|
<<: *db_common_opts
|
|
78
78
|
project_ids:
|
|
79
79
|
- 1
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
geo_node_status:
|
|
81
|
+
class_name: Database::GeoNodeStatusProber
|
|
82
|
+
<<: *db_common
|
|
83
83
|
zoekt:
|
|
84
84
|
class_name: Database::ZoektProber
|
|
85
85
|
<<: *db_common
|
data/spec/config_spec.rb
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
require "spec_helper"
|
|
2
|
+
require "yaml"
|
|
3
|
+
|
|
4
|
+
describe "config/gitlab-exporter.yml.example" do
|
|
5
|
+
let(:config_path) { File.expand_path("../config/gitlab-exporter.yml.example", __dir__) }
|
|
6
|
+
let(:config) { YAML.safe_load_file(config_path, aliases: true) }
|
|
7
|
+
|
|
8
|
+
it "parses as valid YAML with aliases" do
|
|
9
|
+
expect { config }.not_to raise_error
|
|
10
|
+
expect(config).to be_a(Hash)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
describe "database probes" do
|
|
14
|
+
let(:database_probes) { config.dig("probes", "database") }
|
|
15
|
+
|
|
16
|
+
it "configures geo_node_status directly under probes.database" do
|
|
17
|
+
expect(database_probes).to include("geo_node_status")
|
|
18
|
+
expect(database_probes["geo_node_status"]).to include(
|
|
19
|
+
"class_name" => "Database::GeoNodeStatusProber",
|
|
20
|
+
"methods" => ["probe_db"]
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "keeps remote_mirrors and geo_node_status as sibling probes without nested leakage" do
|
|
25
|
+
expect(database_probes["remote_mirrors"]).not_to have_key("geo_node_status")
|
|
26
|
+
expect(database_probes.keys).to include(
|
|
27
|
+
"ci_builds",
|
|
28
|
+
"tuple_stats",
|
|
29
|
+
"rows_count",
|
|
30
|
+
"remote_mirrors",
|
|
31
|
+
"geo_node_status",
|
|
32
|
+
"zoekt"
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
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: 17.1.
|
|
4
|
+
version: 17.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pablo Carranza
|
|
@@ -229,6 +229,7 @@ files:
|
|
|
229
229
|
- lib/gitlab_exporter/version.rb
|
|
230
230
|
- lib/gitlab_exporter/web_exporter.rb
|
|
231
231
|
- spec/cli_spec.rb
|
|
232
|
+
- spec/config_spec.rb
|
|
232
233
|
- spec/database/bloat_spec.rb
|
|
233
234
|
- spec/database/ci_builds_spec.rb
|
|
234
235
|
- spec/database/geo_node_status_spec.rb
|
|
@@ -274,6 +275,7 @@ specification_version: 4
|
|
|
274
275
|
summary: GitLab metrics exporter
|
|
275
276
|
test_files:
|
|
276
277
|
- spec/cli_spec.rb
|
|
278
|
+
- spec/config_spec.rb
|
|
277
279
|
- spec/database/bloat_spec.rb
|
|
278
280
|
- spec/database/ci_builds_spec.rb
|
|
279
281
|
- spec/database/geo_node_status_spec.rb
|