prometheus-client 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prometheus/client/gauge.rb +4 -0
- data/lib/prometheus/client/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a1dc488e71cf101782ff38e48a4fb76477ac8806f48d9af033b599e2dd6381d
|
4
|
+
data.tar.gz: d8ec80118888f89365a66af533e2465660a4cc4034b30812354c7c833bb42fcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb7fbb85311059b82805454a7582d326ac792584d0784744b3f6c767316101474d2e4afe980aefc984bc6cbec01a4a246ece74dca0bc2738bfc8fa0f8f3c5705
|
7
|
+
data.tar.gz: d9d8e28717b85f2ced2dbbf796d8ce4eb475457dd2302bc5aabfdf45767cf846067ef55a3b1a923d0a8d233ba86bb6d205ed0f9984590bfceff19d7b30b79c33
|
@@ -20,6 +20,10 @@ module Prometheus
|
|
20
20
|
@store.set(labels: label_set_for(labels), val: value)
|
21
21
|
end
|
22
22
|
|
23
|
+
def set_to_current_time(labels: {})
|
24
|
+
@store.set(labels: label_set_for(labels), val: Time.now.to_f)
|
25
|
+
end
|
26
|
+
|
23
27
|
# Increments Gauge value by 1 or adds the given value to the Gauge.
|
24
28
|
# (The value can be negative, resulting in a decrease of the Gauge.)
|
25
29
|
def increment(by: 1, labels: {})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prometheus-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Kochie
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: benchmark-ips
|
@@ -40,6 +40,20 @@ dependencies:
|
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: timecop
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
43
57
|
description:
|
44
58
|
email:
|
45
59
|
- superq@gmail.com
|
@@ -89,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
103
|
- !ruby/object:Gem::Version
|
90
104
|
version: '0'
|
91
105
|
requirements: []
|
92
|
-
rubygems_version: 3.
|
106
|
+
rubygems_version: 3.4.10
|
93
107
|
signing_key:
|
94
108
|
specification_version: 4
|
95
109
|
summary: A suite of instrumentation metric primitivesthat can be exposed through a
|