fluent-plugin-numeric-monitor 0.1.9 → 0.2.0

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: 1cf1eb4b47ac10ec80e86d04fd2f15e8d643df59
4
- data.tar.gz: d1cd69d123dde29badd4c9bd6bcb930e7d19e37c
3
+ metadata.gz: 399b0a9e1c2a2713f6dc0dc21a8d1616360a8cf5
4
+ data.tar.gz: 57e6d8d5940c160d17bc849a91183ef15769a5fc
5
5
  SHA512:
6
- metadata.gz: d68ae1eb9aac126f0971b1ad341c1a66725774c2dc47b8b2c8475d22a94806b7366ef839aa06bd0c6eaf0f51b3118ec0c91356d05d4a988f5bbb608edae2b126
7
- data.tar.gz: 388375635aaad65cbb10c26a68cd18085ca906e3f47841cd2244e52d0dcdddce249842d43ddcc930fd29c40dfc91bb1dd8d4b2078a60843e6f7c8e518076455e
6
+ metadata.gz: c885c3d3226f88d886848788894a3f11fe09caa56c054531f63c4fcfd21b11babea8ef72f7dca7430240b2c07d54c978ab39a3ab7607e17a9c081d5289b194ea
7
+ data.tar.gz: 4aca09f32e8fcae71c9003df93048f43cdb5817eaaf9d33dc1828ea031a96818aa9db761cffdbe9271721e3dbc6243c8dfa087b225a8ffb0d74d4d06f6dfb207
data/.travis.yml CHANGED
@@ -1,5 +1,7 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  rvm:
3
4
  - 2.0.0
4
- - 2.1.5
5
- - 2.2.2
5
+ - 2.1.8
6
+ - 2.2.4
7
+ - 2.3.0
data/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
  To calculate about HTTP requests duration (microseconds) in 'duraion', with 90 and 95 percentile values:
14
14
 
15
15
  <match apache.log.**>
16
- type numeric_monitor
16
+ @type numeric_monitor
17
17
  unit minute
18
18
  tag monitor.duration
19
19
  aggregate all
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-numeric-monitor"
4
- gem.version = "0.1.9"
4
+ gem.version = "0.2.0"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.description = %q{Fluentd plugin to calculate min/max/avg/Xpercentile values, and emit these data as message}
@@ -16,5 +16,5 @@ Gem::Specification.new do |gem|
16
16
 
17
17
  gem.add_development_dependency "rake"
18
18
  gem.add_development_dependency "test-unit"
19
- gem.add_runtime_dependency "fluentd"
19
+ gem.add_runtime_dependency "fluentd", "< 0.14.0"
20
20
  end
@@ -6,6 +6,11 @@ class Fluent::NumericMonitorOutput < Fluent::Output
6
6
  define_method("log") { $log }
7
7
  end
8
8
 
9
+ # Define `router` method of v0.12 to support v0.10.57 or earlier
10
+ unless method_defined?(:router)
11
+ define_method("router") { Fluent::Engine }
12
+ end
13
+
9
14
  EMIT_STREAM_RECORDS = 100
10
15
 
11
16
  config_param :count_interval, :time, default: 60,
@@ -198,10 +203,10 @@ DESC
198
203
  if @output_per_tag
199
204
  time = Fluent::Engine.now
200
205
  flush.each do |tag, message|
201
- Fluent::Engine.emit(@tag_prefix_string + tag, time, message)
206
+ router.emit(@tag_prefix_string + tag, time, message)
202
207
  end
203
208
  else
204
- Fluent::Engine.emit(@tag, Fluent::Engine.now, flush)
209
+ router.emit(@tag, Fluent::Engine.now, flush)
205
210
  end
206
211
  end
207
212
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-numeric-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-22 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: fluentd
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.14.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
- version: '0'
54
+ version: 0.14.0
55
55
  description: Fluentd plugin to calculate min/max/avg/Xpercentile values, and emit
56
56
  these data as message
57
57
  email:
@@ -92,11 +92,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.4.5
95
+ rubygems_version: 2.6.8
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Fluentd plugin to calculate min/max/avg/Xpercentile values
99
99
  test_files:
100
100
  - test/helper.rb
101
101
  - test/plugin/test_out_numeric_monitor.rb
102
- has_rdoc: