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 +4 -4
- data/.travis.yml +4 -2
- data/README.md +1 -1
- data/fluent-plugin-numeric-monitor.gemspec +2 -2
- data/lib/fluent/plugin/out_numeric_monitor.rb +7 -2
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 399b0a9e1c2a2713f6dc0dc21a8d1616360a8cf5
|
4
|
+
data.tar.gz: 57e6d8d5940c160d17bc849a91183ef15769a5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c885c3d3226f88d886848788894a3f11fe09caa56c054531f63c4fcfd21b11babea8ef72f7dca7430240b2c07d54c978ab39a3ab7607e17a9c081d5289b194ea
|
7
|
+
data.tar.gz: 4aca09f32e8fcae71c9003df93048f43cdb5817eaaf9d33dc1828ea031a96818aa9db761cffdbe9271721e3dbc6243c8dfa087b225a8ffb0d74d4d06f6dfb207
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -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.
|
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
|
-
|
206
|
+
router.emit(@tag_prefix_string + tag, time, message)
|
202
207
|
end
|
203
208
|
else
|
204
|
-
|
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.
|
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:
|
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:
|
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:
|
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.
|
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:
|