fluent-plugin-growthforecast 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f28159f4df9a0dcd8bc2b5a251c79de65043c712
4
- data.tar.gz: b00867fac86c357dcca3e121f0ef60f05056e9ca
3
+ metadata.gz: c57210d3c41fd037930aa49ac2764595b20bb4f0
4
+ data.tar.gz: 1d30d6493d23022199655a8f30a6b8a41fd9f4a4
5
5
  SHA512:
6
- metadata.gz: bb92e0313c36dc368bb1fe23cd916810e342f51710cdde87d173cacb9a904fc7f630c3fc988ab75be09007669a7e664c16a47a904d491ed412f5234c0fa71729
7
- data.tar.gz: 31cf9bc62f0b9351a8c08c5d912f927193b044da10501ccd52615af3a5333686b079ae01fa742dc8db78d8ee88d09ee940280fbd5f349c028c546e2085c2c0cb
6
+ metadata.gz: d45468c4712a89dfaf6fafc1c4a5eaaa996c17f66c76a666b679d602599566377fc4afce7551de62eb99f430a85dfc07b0fc653bdc3a5ca1066e01728a3d8dda
7
+ data.tar.gz: 382e664a4bedc4a6856a3167f555f974fa9ccabab7a85294b0c4eda2fce493be1b8da79058be876ade330e83917e19ea3dd4cf7c9d20c408dd3cd9e50e6b99a2
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # fluent-plugin-growthforecast
1
+ # fluent-plugin-growthforecast
2
2
 
3
3
  ## GrowthForecastOutput
4
4
 
5
- Plugin to output numbers(metrics) to 'GrowthForecast', metrics drawing tool over HTTP.
5
+ [Fluentd](http://fluentd.org) plugin to output numbers(metrics) to 'GrowthForecast', metrics drawing tool over HTTP.
6
6
 
7
7
  About GrowthForecast, see:
8
8
  * Github: https://github.com/kazeburo/growthforecast
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-growthforecast"
5
- gem.version = "0.2.6"
5
+ gem.version = "0.2.7"
6
6
  gem.authors = ["TAGOMORI Satoshi"]
7
7
  gem.email = ["tagomoris@gmail.com"]
8
8
  gem.summary = %q{Fluentd output plugin to post numbers to GrowthForecast (by kazeburo)}
@@ -43,6 +43,11 @@ class Fluent::GrowthForecastOutput < Fluent::Output
43
43
  :name_prefix => '${service}/${section}/${tag}_${key_name}',
44
44
  }
45
45
 
46
+ # Define `log` method for v0.10.42 or earlier
47
+ unless method_defined?(:log)
48
+ define_method("log") { $log }
49
+ end
50
+
46
51
  def configure(conf)
47
52
  super
48
53
 
@@ -148,7 +153,7 @@ class Fluent::GrowthForecastOutput < Fluent::Output
148
153
  begin
149
154
  post_events(events) if events.size > 0
150
155
  rescue => e
151
- $log.warn "HTTP POST in background Error occures to growthforecast server", :error_class => e.class, :error => e.message
156
+ log.warn "HTTP POST in background Error occures to growthforecast server", :error_class => e.class, :error => e.message
152
157
  end
153
158
  end
154
159
  end
@@ -211,10 +216,10 @@ class Fluent::GrowthForecastOutput < Fluent::Output
211
216
  res = http.start {|http| http.request(req) }
212
217
  rescue IOError, EOFError, SystemCallError
213
218
  # server didn't respond
214
- $log.warn "net/http POST raises exception: #{$!.class}, '#{$!.message}'"
219
+ log.warn "net/http POST raises exception: #{$!.class}, '#{$!.message}'"
215
220
  end
216
221
  unless res and res.is_a?(Net::HTTPSuccess)
217
- $log.warn "failed to post to growthforecast: #{url}, number: #{value}, code: #{res && res.code}"
222
+ log.warn "failed to post to growthforecast: #{url}, number: #{value}, code: #{res && res.code}"
218
223
  end
219
224
  end
220
225
 
@@ -235,10 +240,10 @@ class Fluent::GrowthForecastOutput < Fluent::Output
235
240
  end
236
241
  res = http.request(req)
237
242
  unless res and res.is_a?(Net::HTTPSuccess)
238
- $log.warn "failed to post to growthforecast: #{host}:#{port}#{req.path}, post_data: #{req.body} code: #{res && res.code}"
243
+ log.warn "failed to post to growthforecast: #{host}:#{port}#{req.path}, post_data: #{req.body} code: #{res && res.code}"
239
244
  end
240
245
  rescue IOError, EOFError, Errno::ECONNRESET, Errno::ETIMEDOUT, SystemCallError
241
- $log.warn "net/http keepalive POST raises exception: #{$!.class}, '#{$!.message}'"
246
+ log.warn "net/http keepalive POST raises exception: #{$!.class}, '#{$!.message}'"
242
247
  begin
243
248
  http.finish
244
249
  rescue => e
@@ -291,7 +296,7 @@ class Fluent::GrowthForecastOutput < Fluent::Output
291
296
  begin
292
297
  post_events(events)
293
298
  rescue => e
294
- $log.warn "HTTP POST Error occures to growthforecast server", :error_class => e.class, :error => e.message
299
+ log.warn "HTTP POST Error occures to growthforecast server", :error_class => e.class, :error => e.message
295
300
  raise if @retry
296
301
  end
297
302
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-growthforecast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-28 00:00:00.000000000 Z
11
+ date: 2014-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fluentd
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fluent-mixin-config-placeholders
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: resolve-hostname
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.0.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.0.4
69
69
  description: For GrowthForecast, see http://kazeburo.github.com/GrowthForecast/
@@ -73,9 +73,9 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .document
77
- - .gitignore
78
- - .travis.yml
76
+ - ".document"
77
+ - ".gitignore"
78
+ - ".travis.yml"
79
79
  - AUTHORS
80
80
  - Gemfile
81
81
  - LICENSE.txt
@@ -96,21 +96,20 @@ require_paths:
96
96
  - lib
97
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.0.3
109
+ rubygems_version: 2.2.2
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Fluentd output plugin to post numbers to GrowthForecast (by kazeburo)
113
113
  test_files:
114
114
  - test/helper.rb
115
115
  - test/plugin/test_out_growthforecast.rb
116
- has_rdoc: