prometheus-client-mmap 0.26.0 → 0.26.1

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
2
  SHA256:
3
- metadata.gz: 94ad1d9acceaff1f75911cfe6665b1ed016916305e51865d5c4b49c22c81b880
4
- data.tar.gz: 990a2ebcdf397bf025b8cd11eb3dc49227733b4590ab2cfff5a1b564e882362f
3
+ metadata.gz: '09a6e392f5e618a14eb5f5977fefd23194f1ecd3639f6ddc87450b31a9be46fe'
4
+ data.tar.gz: 5b501a04d1e2be9c5820ddfe7f0cd5b9d6734d389fd7ab4b6d12f0b2b063a19f
5
5
  SHA512:
6
- metadata.gz: 4d6919e8a5c0c61fc3cbfce2a2e09ba9f5eb71e9bca9710533c950d6a93c6ba2f9539e6e194b08707f5e0722a1d65d7d85c152cf007e893957f35f6135d5695c
7
- data.tar.gz: 90ddef5880f7f48f82488abe9a4dd124d6520af0c42fc2f25fab8bb3599cd38258755737c2a0eb1fdf23c8a8d7982b1a8ae6bcffddfffb31f624178ba042c177
6
+ metadata.gz: 6ecfa0a05b8c68e5d0a869802d03e287df0df8d0fb7034d5d1fea3358691f489083d9018f74f45fba577d83751e88843513e74ba23e9778d761289860e8d4449
7
+ data.tar.gz: 3694e4ebaa74d6a191c26613d49b0df24339ad01be893e13781b472cd99a8c4952e31890fd614cdbe1f29a64d7d4906b1c9dbf9e8b6da1fe4d885fca8ddd40b2
data/README.md CHANGED
@@ -10,7 +10,24 @@ through a HTTP interface. Intended to be used together with a
10
10
 
11
11
  [![Gem Version][4]](http://badge.fury.io/rb/prometheus-client-mmap)
12
12
  [![Build Status][3]](https://gitlab.com/gitlab-org/prometheus-client-mmap/commits/master)
13
- [![Dependency Status][5]](https://gemnasium.com/prometheus/prometheus-client-mmap)
13
+
14
+ ## Installation
15
+
16
+ prometheus-client-mmap ships with [precompiled native gems](https://rubygems.org/gems/prometheus-client-mmap).
17
+ Install the gem via:
18
+
19
+ ```shell
20
+ gem install prometheus-client-mmap
21
+ ```
22
+
23
+ ### Requirements for building from source
24
+
25
+ Building from source requires a number of dependencies:
26
+
27
+ * Rust v1.65+
28
+ * clang 5.0 or higher for [bindgen](https://rust-lang.github.io/rust-bindgen/requirements.html)
29
+ * `make`
30
+ * A C compiler (for legacy extension, which will be removed soon)
14
31
 
15
32
  ## Usage
16
33
 
@@ -36,7 +53,7 @@ http_requests.increment
36
53
 
37
54
  ## Rust extension
38
55
 
39
- In an effort to improve maintainability, there is now an optional Rust
56
+ In an effort to improve maintainability, there is now a Rust
40
57
  implementation that reads the metric files and outputs the multiprocess
41
58
  metrics to text. If `rustc` is available, then the Rust extension will
42
59
  be built automatically. The `use_rust` keyword argument can be used:
@@ -45,8 +62,10 @@ be built automatically. The `use_rust` keyword argument can be used:
45
62
  puts Prometheus::Client::Formats::Text.marshal_multiprocess(use_rust: true)
46
63
  ```
47
64
 
65
+ Starting with v0.26.0, `use_rust` defaults to `true`.
66
+
48
67
  Note that this parameter will likely be deprecated and removed once the Rust
49
- extension becomes the default mode.
68
+ extension becomes the only supported mode.
50
69
 
51
70
  ### Rack middleware
52
71
 
@@ -29,7 +29,11 @@ module Prometheus
29
29
  load_rust_extension
30
30
  true
31
31
  rescue LoadError
32
- Prometheus::Client.logger.info('FastMmapedFileRs unavailable')
32
+ warn <<~WARN
33
+ WARNING: The Rust extension for prometheus-client-mmap is unavailable, falling back to the legacy C extension.
34
+ The Rust extension will be required in the next version. If you are compiling this gem from source,
35
+ ensure your build system has a Rust compiler and clang: https://gitlab.com/gitlab-org/ruby/gems/prometheus-client-mmap
36
+ WARN
33
37
  false
34
38
  end
35
39
  end
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '0.26.0'.freeze
3
+ VERSION = '0.26.1'.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.26.0
4
+ version: 0.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-06-20 00:00:00.000000000 Z
14
+ date: 2023-07-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rb_sys