monitoring-client 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/monitoringd +2 -3
- data/lib/monitoring/client/version.rb +1 -1
- metadata +3 -3
data/bin/monitoringd
CHANGED
@@ -163,12 +163,11 @@ module Monitoring
|
|
163
163
|
end
|
164
164
|
|
165
165
|
def post_samples(uri, samples)
|
166
|
-
generic_http_post(uri, "/api/samples", nil, nil,
|
166
|
+
generic_http_post(uri, "/api/samples", nil, nil, 30, { "samples" => json_encode(samples) })
|
167
167
|
rescue Timeout::Error => e
|
168
|
-
STDOUT.puts("Could not post sample (will requeue): " + samples.inspect()) rescue nil
|
168
|
+
STDOUT.puts("Could not post sample (will not requeue): " + samples.inspect()) rescue nil
|
169
169
|
STDERR.puts([[e.class.name, e.message].join(": "),
|
170
170
|
e.backtrace.join("\n")].join("\n")) rescue nil
|
171
|
-
samples.each { |s| @samples.push(s) }
|
172
171
|
rescue StandardError => e
|
173
172
|
STDOUT.puts("Could not post sample (will not requeue): " + samples.inspect()) rescue nil
|
174
173
|
STDERR.puts([[e.class.name, e.message].join(": "),
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monitoring-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 8
|
10
|
+
version: 0.2.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marc Bowes
|