gitlab-exporter 15.1.0 → 15.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -2
- data/lib/gitlab_exporter/database/row_count.rb +1 -1
- data/lib/gitlab_exporter/version.rb +1 -1
- data/lib/gitlab_exporter/web_exporter.rb +1 -1
- data/spec/database/pg_sequences_spec.rb +5 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce8ca39488a8899bf54a56909d58d146630d65b42e15125abe04b71b195184a0
|
4
|
+
data.tar.gz: 964aa5174ccc4741d8aec5d4f04113fe3300308be52df082b7d3822a3b9486a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbade2952b3dcec413afad922cd0d092e8a37be8096f520ef3d46a94d129a76e9d2d3e48f5ba97c8c9fb855fe0f707c5ea0ec4c18cb2a9aa2059c069d1e24598
|
7
|
+
data.tar.gz: bbc7876726057eff433549331304a604160f5a377f7e4185d91b7d1c066196ac14791a24cf67e203e7cfd87b6cda4e70da5264c27b14d82ef356d1b1fa03510b
|
data/Gemfile.lock
CHANGED
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) --
|
@@ -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
|