prometheus-client-mmap 0.7.0.beta35 → 0.7.0.beta36
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 830d1bd0606ce68c4db5bb8cfd30b4a34d09be2e
|
4
|
+
data.tar.gz: 88746a32359a5ef7f63580477011e0a345248462
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8a321c7ed25c46440b00983d155c1b4cba6e81bf0339c2e9a1a6d5f52a61c17110e86a338bef731d3e0a7de7db6a4736d692dd9781778b87bb41f32122524e0
|
7
|
+
data.tar.gz: 0b0dd5e192aabc0f97057cd160b87515731c7b3aef20147a239e1e29712c69c6aaaef58bc35b661e46acbf67767d7a64b967d2be235001d653bc85092223ae8c
|
@@ -50,7 +50,7 @@ void expand(mm_ipc *i_mm, size_t len) {
|
|
50
50
|
rb_raise(rb_eArgError, "mmap failed");
|
51
51
|
}
|
52
52
|
|
53
|
-
if (close(fd) == -1){
|
53
|
+
if (close(fd) == -1) {
|
54
54
|
rb_raise(rb_eArgError, "Can't close %s", i_mm->t->path);
|
55
55
|
}
|
56
56
|
|
@@ -86,7 +86,7 @@ void save_entry(mm_ipc *i_mm, uint32_t offset, VALUE key, VALUE value){
|
|
86
86
|
inline uint32_t load_used(mm_ipc *i_mm) {
|
87
87
|
uint32_t used = *((uint32_t *)i_mm->t->addr);
|
88
88
|
|
89
|
-
if (used == 0){
|
89
|
+
if (used == 0) {
|
90
90
|
used = START_POSITION;
|
91
91
|
}
|
92
92
|
return used;
|
@@ -104,7 +104,7 @@ VALUE method_load_used(VALUE self) {
|
|
104
104
|
}
|
105
105
|
|
106
106
|
VALUE method_save_used(VALUE self, VALUE value) {
|
107
|
-
|
107
|
+
Check_Type(value, T_FIXNUM);
|
108
108
|
mm_ipc *i_mm;
|
109
109
|
|
110
110
|
GET_MMAP(self, i_mm, MM_MODIFY);
|
data/lib/fast_mmaped_file.bundle
CHANGED
Binary file
|
@@ -15,7 +15,6 @@ module Prometheus
|
|
15
15
|
|
16
16
|
class << self
|
17
17
|
def marshal(registry)
|
18
|
-
|
19
18
|
metrics = registry.metrics.map do |metric|
|
20
19
|
samples = metric.values.flat_map do |label_set, value|
|
21
20
|
representation(metric, label_set, value)
|
@@ -40,6 +39,7 @@ module Prometheus
|
|
40
39
|
Dir.glob(File.join(path, '*.db')).sort.each do |f|
|
41
40
|
Helper::PlainFile.new(f).to_metrics(metrics)
|
42
41
|
end
|
42
|
+
|
43
43
|
metrics
|
44
44
|
end
|
45
45
|
|
@@ -102,8 +102,7 @@ module Prometheus
|
|
102
102
|
metric_name: metric_name,
|
103
103
|
help: 'Multiprocess metric',
|
104
104
|
type: type,
|
105
|
-
samples: []
|
106
|
-
)
|
105
|
+
samples: [])
|
107
106
|
if type == :gauge
|
108
107
|
metric[:multiprocess_mode] = multiprocess_mode
|
109
108
|
metric[:samples] += [[name, labelnames.zip(labelvalues) + [['pid', pid]], value]]
|
@@ -112,6 +111,7 @@ module Prometheus
|
|
112
111
|
metric[:samples] += [[name, labelnames.zip(labelvalues), value]]
|
113
112
|
end
|
114
113
|
metrics[metric_name] = metric
|
114
|
+
|
115
115
|
rescue JSON::ParserError => e
|
116
116
|
raise ParsingError(e) unless ignore_errors
|
117
117
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prometheus-client-mmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0.
|
4
|
+
version: 0.7.0.beta36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Schmidt
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: 1.3.1
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.6.
|
157
|
+
rubygems_version: 2.6.14
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: A suite of instrumentation metric primitivesthat can be exposed through a
|