gitlab-exporter 15.1.0 → 15.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73d7d8a42035a6cb634f0c234e6bcd3e723492f2903663d7ecd0ccacde53279c
4
- data.tar.gz: 012ce7e6313ec24c72c605bf016477c75d6de08ec2c37339e0a12c09c64aaa23
3
+ metadata.gz: ce8ca39488a8899bf54a56909d58d146630d65b42e15125abe04b71b195184a0
4
+ data.tar.gz: 964aa5174ccc4741d8aec5d4f04113fe3300308be52df082b7d3822a3b9486a3
5
5
  SHA512:
6
- metadata.gz: dc31a10b7051bb5c76667d817cdd2761cd9ce9b755949567770b390f4362b37722d5658300b63607ff8f2566e577786ddb6e5b8edf3263bbbba3c478d28e08e7
7
- data.tar.gz: 96b24d081ca6172197f6bdf44b739b3d053f32f2944378bb09609a02e485a053251c752ad49c921202eeee165437284aea73f875cce06a85edc455fb2d4e573d
6
+ metadata.gz: cbade2952b3dcec413afad922cd0d092e8a37be8096f520ef3d46a94d129a76e9d2d3e48f5ba97c8c9fb855fe0f707c5ea0ec4c18cb2a9aa2059c069d1e24598
7
+ data.tar.gz: bbc7876726057eff433549331304a604160f5a377f7e4185d91b7d1c066196ac14791a24cf67e203e7cfd87b6cda4e70da5264c27b14d82ef356d1b1fa03510b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-exporter (15.1.0)
4
+ gitlab-exporter (15.2.0)
5
5
  connection_pool (= 2.2.5)
6
6
  deep_merge (~> 1.2.2)
7
7
  faraday (>= 1.8.0, <= 2.8.1)
data/README.md CHANGED
@@ -20,8 +20,7 @@ metrics.
20
20
  * [Per-table tuple stats](lib/gitlab_exporter/database/tuple_stats.rb) --
21
21
  `gitlab_database_stat_table_*`
22
22
  * [Per-sequence stats](lib/gitlab_exporter/database/pg_sequences.rb) --
23
- `gitlab_pg_sequences_min_value`, `gitlab_pg_sequences_max_value`, `gitlab_pg_sequences_current_value`,
24
- `gitlab_pg_sequences_saturation_ratio`
23
+ `gitlab_pg_sequences_min_value`, `gitlab_pg_sequences_max_value`, `gitlab_pg_sequences_current_value`
25
24
  * [Row count queries](lib/gitlab_exporter/database/row_count.rb) --
26
25
  `gitlab_database_rows`
27
26
  * [CI builds](lib/gitlab_exporter/database/ci_builds.rb) --
@@ -104,7 +104,7 @@ module GitLab
104
104
  GROUP BY members.user_id
105
105
  ) AS u
106
106
  ON users.id = u.user_id",
107
- where: "user_type IS NULL",
107
+ where: "user_type = 0",
108
108
  fields: {
109
109
  admin: {},
110
110
  external: {},
@@ -1,5 +1,5 @@
1
1
  module GitLab
2
2
  module Exporter
3
- VERSION = "15.1.0".freeze
3
+ VERSION = "15.2.0".freeze
4
4
  end
5
5
  end
@@ -133,7 +133,7 @@ module GitLab
133
133
  end
134
134
 
135
135
  get "/#{probe_name}" do
136
- content_type "text/plain; version=0.0.4"
136
+ content_type "text/plain; version=0.0.4; charset=utf-8"
137
137
  prober = Prober.new(metrics: PrometheusMetrics.new(include_timestamp: false), logger: logger, **opts)
138
138
 
139
139
  prober.probe_all
@@ -15,8 +15,7 @@ describe GitLab::Exporter::Database::PgSequencesCollector do
15
15
  "fully_qualified_sequencename" => "public.seq_one",
16
16
  "min_value" => 1,
17
17
  "max_value" => 9_223_372_036_854_775_807,
18
- "current_value" => 6_223_372_036_854_745_121,
19
- "saturation_ratio" => 0.6747e2
18
+ "current_value" => 6_223_372_036_854_745_121
20
19
  },
21
20
  {
22
21
  "schemaname" => "public",
@@ -24,8 +23,7 @@ describe GitLab::Exporter::Database::PgSequencesCollector do
24
23
  "fully_qualified_sequencename" => "public.seq_two",
25
24
  "min_value" => 1,
26
25
  "max_value" => 9_223_372_036_854_775_807,
27
- "current_value" => nil,
28
- "saturation_ratio" => 0.0
26
+ "current_value" => nil
29
27
  }
30
28
  ]
31
29
  end
@@ -43,16 +41,14 @@ describe GitLab::Exporter::Database::PgSequencesCollector do
43
41
  "sequencename" => "seq_one",
44
42
  "min_value" => 1,
45
43
  "max_value" => 9_223_372_036_854_775_807,
46
- "current_value" => 6_223_372_036_854_745_121,
47
- "saturation_ratio" => 0.6747e2
44
+ "current_value" => 6_223_372_036_854_745_121
48
45
  },
49
46
  "public.seq_two" => {
50
47
  "schemaname" => "public",
51
48
  "sequencename" => "seq_two",
52
49
  "min_value" => 1,
53
50
  "max_value" => 9_223_372_036_854_775_807,
54
- "current_value" => nil,
55
- "saturation_ratio" => 0.0
51
+ "current_value" => nil
56
52
  }
57
53
  )
58
54
  )
@@ -71,8 +67,7 @@ describe GitLab::Exporter::Database::PgSequencesProber do
71
67
  "sequencename" => "seq_one",
72
68
  "min_value" => 1,
73
69
  "max_value" => 10,
74
- "current_value" => 2,
75
- "saturation_ratio" => 0.2
70
+ "current_value" => 2
76
71
  }
77
72
  }
78
73
  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: 15.1.0
4
+ version: 15.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Carranza