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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df145039780458bab34b436ca149dce37c4c4f4a08e1707b606f70dc4aa021a4
4
- data.tar.gz: 272f4e78ffb5901954f086e58a158087328d0478deb18114fb748504e067796b
3
+ metadata.gz: 50fbeb1ab763a918c65648dcb9d400b724b15c46ff74512a226291d8d1b47a32
4
+ data.tar.gz: e80d1246a12289f9a117f91c4821bb779849b2bb3df22bdfe16063074031c804
5
5
  SHA512:
6
- metadata.gz: a223ec3d899fcc85eeb391e100cce3942aeb050264cc03c6877ad6387f09234461408f45f1a8a82128c657b240f4ce2768c35a1d58857d4c3fb212f42090f28c
7
- data.tar.gz: 992f12485329239412a793b67c556c7226535765d3ecfea83271e055c679c75d7d1d0af8b0be71e83408a0aacc77ceb0e3d9079281725d26b04f86955e01baf7
6
+ metadata.gz: 9d7174c179fc0cbb08c5caea1171be487a5005e1aa85817dc8f8a1495beaa92e03195a6bac17f9e60196649ded0bb8c0e18f42cfd797920e3cc2203cddfb4581
7
+ data.tar.gz: b1867eb94ccdd9fd44f79ac0e1278bb184c9923bb4e65cb4575c87dd3ec68ea9f6f753c27d2266c5f9a9510efa9d3873bd9702c48005310d97bb3394e26878c2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-exporter (17.1.0)
4
+ gitlab-exporter (17.1.1)
5
5
  base64 (= 0.3.0)
6
6
  connection_pool (= 2.5.5)
7
7
  deep_merge (~> 1.2.2)
@@ -77,9 +77,9 @@ probes:
77
77
  <<: *db_common_opts
78
78
  project_ids:
79
79
  - 1
80
- geo_node_status:
81
- class_name: Database::GeoNodeStatusProber
82
- <<: *db_common
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
@@ -1,5 +1,5 @@
1
1
  module GitLab
2
2
  module Exporter
3
- VERSION = "17.1.0".freeze
3
+ VERSION = "17.1.1".freeze
4
4
  end
5
5
  end
@@ -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.0
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