prometheus_exporter 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/prometheus_exporter/instrumentation/unicorn.rb +8 -6
- data/lib/prometheus_exporter/version.rb +1 -1
- data/prometheus_exporter.gemspec +3 -0
- 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: 71b406ba7c421d68e71912c260c0f520e31ee1f77eaf1fa1d5c1c2787f2de7d4
|
4
|
+
data.tar.gz: abdb9ec293106feb25d997887558229fe293f6530fb7799d03b94c6183f91a29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b09926d30a09bd16df3afa1b55dddc37016d7ce93e4c42d54d874e6f04bc0b2f44ea8ee32211e09abe02ca1ee296bd02e0087640832d6f7854efc7ca300c8c32
|
7
|
+
data.tar.gz: 3c7d52250ce85c35a461959273b98b6d51db63ff33aa926a34b0c82dc447690dad66e557e7f0cde2bf3c0f99eaad615109c0ad8df7d8b81b36d0238a05515cab
|
data/CHANGELOG
CHANGED
@@ -12,12 +12,14 @@ module PrometheusExporter::Instrumentation
|
|
12
12
|
client ||= PrometheusExporter::Client.default
|
13
13
|
Thread.new do
|
14
14
|
loop do
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
begin
|
16
|
+
metric = unicorn_collector.collect
|
17
|
+
client.send_json metric
|
18
|
+
rescue StandardError => e
|
19
|
+
STDERR.puts("Prometheus Exporter Failed To Collect Unicorn Stats #{e}")
|
20
|
+
ensure
|
21
|
+
sleep frequency
|
22
|
+
end
|
21
23
|
end
|
22
24
|
end
|
23
25
|
end
|
data/prometheus_exporter.gemspec
CHANGED
@@ -31,5 +31,8 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "oj", "~> 3.0"
|
32
32
|
spec.add_development_dependency "rack-test", "~> 0.8.3"
|
33
33
|
spec.add_development_dependency "minitest-stub-const", "~> 0.6"
|
34
|
+
if !RUBY_ENGINE == 'jruby'
|
35
|
+
spec.add_development_dependency "raindrops", "~> 0.19"
|
36
|
+
end
|
34
37
|
spec.required_ruby_version = '>= 2.3.0'
|
35
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prometheus_exporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|