prometheus-client-mmap 0.26.0-arm64-darwin → 0.26.1-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -3
- data/lib/3.1/fast_mmaped_file.bundle +0 -0
- data/lib/3.2/fast_mmaped_file.bundle +0 -0
- data/lib/prometheus/client/helper/loader.rb +5 -1
- data/lib/prometheus/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8adc827050ddc653aa4309f81269e9652e89dbd7472633acd2d088d53d6b669a
|
4
|
+
data.tar.gz: 16bcbbd60af12df61dc028a9424a0d62fcbe45c279c08d0ce5fd60da9b57aa56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc0adeba0a82257a8698cb2429f89deded38efdbb453df232b2892bb6cee576c198a40f6a873a29a3a39685686000bb1e4411ddb6221f298750adfcb313d73b
|
7
|
+
data.tar.gz: b92d771ee6b3a0b4c854488362ccc7754a8fce25d67e4c3aec9eeb16d2d9838e2e90c89a48f83de5a714472cf9d7dd363adca4b2812e9da65bcb7ed449a649ac
|
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
|
-
|
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
|
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
|
68
|
+
extension becomes the only supported mode.
|
50
69
|
|
51
70
|
### Rack middleware
|
52
71
|
|
Binary file
|
Binary file
|
@@ -29,7 +29,11 @@ module Prometheus
|
|
29
29
|
load_rust_extension
|
30
30
|
true
|
31
31
|
rescue LoadError
|
32
|
-
|
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
|
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.
|
4
|
+
version: 0.26.1
|
5
5
|
platform: arm64-darwin
|
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-
|
14
|
+
date: 2023-07-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rb_sys
|