prometheus_exporter 0.4.11 → 0.4.12
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 +3 -3
- data/lib/prometheus_exporter/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: 675e7d70e60c829a7b7d1a062300f23f37ae4b7ec9c413a59e172c0c244abbbc
|
4
|
+
data.tar.gz: bdf19d92ec159ede770f0166b658b397f21a63c4b946ec0cdf91af902db1dd1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8072bc72646c5c06e8029605d76fca0e075ec99651ae0c158b4a9989d6d4a43366ca0ef5e4398168718e07f1fde9888d7b8050499ca24da44255d9ca5fccf72
|
7
|
+
data.tar.gz: 4aba5c0791a2aaed035cf42bc091b58fc4d54619ce4e815c3511e332fbda99779c6e1ee2624e78d0bae10f1e0ce6d911f859f0fe7782b9b46fa726742aa80457
|
data/CHANGELOG
CHANGED
@@ -51,13 +51,13 @@ module PrometheusExporter::Instrumentation
|
|
51
51
|
|
52
52
|
def worker_process_count
|
53
53
|
return nil unless File.exist?(@pid_file)
|
54
|
-
pid = File.read(@pid_file)
|
54
|
+
pid = File.read(@pid_file).to_i
|
55
55
|
|
56
|
-
return nil
|
56
|
+
return nil if pid < 1
|
57
57
|
|
58
58
|
# find all processes whose parent is the unicorn master
|
59
59
|
# but we're actually only interested in the number of processes (= lines of output)
|
60
|
-
result = `
|
60
|
+
result = `pgrep -P #{pid} -f unicorn -a`
|
61
61
|
result.lines.count
|
62
62
|
end
|
63
63
|
|
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.12
|
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-05-
|
11
|
+
date: 2019-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|