fluent-plugin-numeric-monitor 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-numeric-monitor.gemspec +2 -2
- data/lib/fluent/plugin/out_numeric_monitor.rb +27 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cf1eb4b47ac10ec80e86d04fd2f15e8d643df59
|
4
|
+
data.tar.gz: d1cd69d123dde29badd4c9bd6bcb930e7d19e37c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d68ae1eb9aac126f0971b1ad341c1a66725774c2dc47b8b2c8475d22a94806b7366ef839aa06bd0c6eaf0f51b3118ec0c91356d05d4a988f5bbb608edae2b126
|
7
|
+
data.tar.gz: 388375635aaad65cbb10c26a68cd18085ca906e3f47841cd2244e52d0dcdddce249842d43ddcc930fd29c40dfc91bb1dd8d4b2078a60843e6f7c8e518076455e
|
@@ -1,13 +1,13 @@
|
|
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.
|
4
|
+
gem.version = "0.1.9"
|
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}
|
8
8
|
gem.summary = %q{Fluentd plugin to calculate min/max/avg/Xpercentile values}
|
9
9
|
gem.homepage = "https://github.com/tagomoris/fluent-plugin-numeric-monitor"
|
10
|
-
gem.license = "
|
10
|
+
gem.license = "Apache-2.0"
|
11
11
|
|
12
12
|
gem.files = `git ls-files`.split($\)
|
13
13
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -8,7 +8,8 @@ class Fluent::NumericMonitorOutput < Fluent::Output
|
|
8
8
|
|
9
9
|
EMIT_STREAM_RECORDS = 100
|
10
10
|
|
11
|
-
config_param :count_interval, :time, default: 60
|
11
|
+
config_param :count_interval, :time, default: 60,
|
12
|
+
desc: 'The interval time to monitor in seconds.'
|
12
13
|
config_param :unit, default: nil do |value|
|
13
14
|
case value
|
14
15
|
when 'minute' then 60
|
@@ -18,11 +19,21 @@ class Fluent::NumericMonitorOutput < Fluent::Output
|
|
18
19
|
raise Fluent::ConfigError, "unit must be one of minute/hour/day"
|
19
20
|
end
|
20
21
|
end
|
21
|
-
config_param :tag, :string, default: 'monitor'
|
22
|
-
|
22
|
+
config_param :tag, :string, default: 'monitor',
|
23
|
+
desc: 'The output tag.'
|
24
|
+
config_param :tag_prefix, :string, default: nil,
|
25
|
+
desc: <<-DESC
|
26
|
+
The prefix string which will be added to the input tag.
|
27
|
+
output_per_tag yes must be specified together.
|
28
|
+
DESC
|
23
29
|
|
24
|
-
config_param :output_per_tag, :bool, default: false
|
25
|
-
|
30
|
+
config_param :output_per_tag, :bool, default: false,
|
31
|
+
desc: <<-DESC
|
32
|
+
Emit for each input tag.
|
33
|
+
tag_prefix must be specified together.
|
34
|
+
DESC
|
35
|
+
config_param :aggregate, default: 'tag',
|
36
|
+
desc: 'Calculate in each input tag separetely, or all records in a mass.' do |val|
|
26
37
|
case val
|
27
38
|
when 'tag' then :tag
|
28
39
|
when 'all' then :all
|
@@ -30,10 +41,15 @@ class Fluent::NumericMonitorOutput < Fluent::Output
|
|
30
41
|
raise Fluent::ConfigError, "aggregate MUST be one of 'tag' or 'all'"
|
31
42
|
end
|
32
43
|
end
|
33
|
-
config_param :input_tag_remove_prefix, :string, default: nil
|
34
|
-
|
35
|
-
config_param :
|
36
|
-
|
44
|
+
config_param :input_tag_remove_prefix, :string, default: nil,
|
45
|
+
desc: 'The prefix string which will be removed from the input tag.'
|
46
|
+
config_param :monitor_key, :string,
|
47
|
+
desc: 'The key to monitor in the event record.'
|
48
|
+
config_param :output_key_prefix, :string, default: nil,
|
49
|
+
desc: 'The prefix string which will be added to the output key.'
|
50
|
+
config_param :percentiles, default: nil,
|
51
|
+
desc: 'Activate the percentile monitoring. ' \
|
52
|
+
'Must be specified between 1 and 99 by integer separeted by , (comma).' do |val|
|
37
53
|
values = val.split(",").map(&:to_i)
|
38
54
|
if values.select{|i| i < 1 or i > 99 }.size > 0
|
39
55
|
raise Fluent::ConfigError, "percentiles MUST be specified between 1 and 99 by integer"
|
@@ -41,7 +57,8 @@ class Fluent::NumericMonitorOutput < Fluent::Output
|
|
41
57
|
values
|
42
58
|
end
|
43
59
|
|
44
|
-
config_param :samples_limit, :integer, default: 1000000
|
60
|
+
config_param :samples_limit, :integer, default: 1000000,
|
61
|
+
desc: 'The limit number of sampling.'
|
45
62
|
config_param :interval, :float, default: 0.5
|
46
63
|
|
47
64
|
attr_accessor :count, :last_checked
|
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.
|
4
|
+
version: 0.1.9
|
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-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -74,7 +74,7 @@ files:
|
|
74
74
|
- test/plugin/test_out_numeric_monitor.rb
|
75
75
|
homepage: https://github.com/tagomoris/fluent-plugin-numeric-monitor
|
76
76
|
licenses:
|
77
|
-
-
|
77
|
+
- Apache-2.0
|
78
78
|
metadata: {}
|
79
79
|
post_install_message:
|
80
80
|
rdoc_options: []
|