prometheus-client-mmap 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ffa6a21d29d372519ce95f9cfd004aac10fb9b4c
4
- data.tar.gz: 2d8e3faa150d597c1f78d88341cd7eec6b58a6c1
2
+ SHA256:
3
+ metadata.gz: e67a66ba1da1469cded3551f42218463e0a6d46b48cfee0d5ed4a83f3bfe3d62
4
+ data.tar.gz: 1fee4e0dbf50c7889032074de0d6614049ab96f0eeb7e39368ec36f29d01763d
5
5
  SHA512:
6
- metadata.gz: b971c4fa6d54421a8178c1c0d16fbe019cf878ba4574affd199d74c3aa72723f554f25eafd66f77f432d451bdd68a77118bf22938e6ea857997978f892f8d124
7
- data.tar.gz: 71d75733d5107297c62f9fde343257dd9d73d079c8a7bb586d90fc5fac1f3f2c8121ac03d765a66bcccad0490c4d3b4214eee244c8345f25fa48fae87c8b0d93
6
+ metadata.gz: 72619771e19d846e48884473d895ddc31fd7de43ba5bdc1ce0a7b913e87bd52c80bd6ef73e30b2ef83022f7f69989889050495130d5411378d19c763fa5a6e7a
7
+ data.tar.gz: 31a247c7db4cd1bbebb6d6b42e2d42b289d719fea0aa2f9f2d25589bb5bf11f2a8282d30090e5bc5a26e502f733306e13cd8a22cbddf004f80a826fa895203c2
data/README.md CHANGED
@@ -181,7 +181,7 @@ prometheus_multiproc_dir=/tmp
181
181
  In multiprocess setup e.g. running under Unicorn, having worker process restart often can
182
182
  lead to performance problems when proccesing metric files. By default each process using
183
183
  Prometheus metrics will create a set of files based on that process PID. With high worker
184
- churn this will lead to creation of thousands of files and in turn will cause very noticable
184
+ churn this will lead to creation of thousands of files and in turn will cause very noticable
185
185
  slowdown when displaying metrics
186
186
 
187
187
  To reduce this problem, a surrogate process id can be used. Set of all such IDs needs
@@ -196,7 +196,7 @@ To use it add this line to your `configure` block:
196
196
  ```
197
197
 
198
198
  ## Tools
199
-
199
+
200
200
  ###`bin/parse`
201
201
 
202
202
  This command can be used to parse metric files located on the filesystem just like a metric exporter would.
@@ -212,14 +212,11 @@ Usage: parse [options] files...
212
212
  -h, --help Show this message
213
213
  ```
214
214
 
215
- ## Tests
215
+ ## Development
216
216
 
217
- Install necessary development gems with `bundle install` and run tests with
218
- rspec:
217
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
219
218
 
220
- ```bash
221
- rake
222
- ```
219
+ To install this gem onto your local machine, run `bundle exec rake install`.
223
220
 
224
221
  [1]: https://github.com/prometheus/prometheus
225
222
  [2]: http://rack.github.io/
@@ -45,6 +45,11 @@ static inline int append_token(VALUE string, const entry_t *entry, const jsmntok
45
45
 
46
46
  static int append_labels(VALUE string, const entry_t *entry, const int label_count, const jsmntok_t *tokens) {
47
47
  if (label_count <= 0) {
48
+ if (is_pid_significant(entry)) {
49
+ rb_str_cat(string, "{pid=\"", 6);
50
+ rb_str_append(string, entry->pid);
51
+ rb_str_cat(string, "\"}", 2);
52
+ }
48
53
  return 1;
49
54
  }
50
55
 
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '0.9.5'.freeze
3
+ VERSION = '0.9.6'.freeze
4
4
  end
5
5
  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.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-09 00:00:00.000000000 Z
12
+ date: 2019-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fuzzbert
@@ -45,6 +45,20 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.1.1
48
+ - !ruby/object:Gem::Dependency
49
+ name: pry
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.12.2
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.12.2
48
62
  - !ruby/object:Gem::Dependency
49
63
  name: rake-compiler
50
64
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
179
  version: '0'
166
180
  requirements: []
167
181
  rubyforge_project:
168
- rubygems_version: 2.6.14.1
182
+ rubygems_version: 2.7.6
169
183
  signing_key:
170
184
  specification_version: 4
171
185
  summary: A suite of instrumentation metric primitivesthat can be exposed through a