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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9958f6c8175857684aa47425a26b7a334570e6a
4
- data.tar.gz: 64f7c2b792cf2a14b62e4f120ece11e5f0aab977
3
+ metadata.gz: 1cf1eb4b47ac10ec80e86d04fd2f15e8d643df59
4
+ data.tar.gz: d1cd69d123dde29badd4c9bd6bcb930e7d19e37c
5
5
  SHA512:
6
- metadata.gz: c9ea36335547a948cfd4f808224c4c55158ca350a9fc39f1a5c5135a1da19c5ded3f456440d3de21cdec05740e2c17ecb19f6efa39d8a6ac90d6d7cdccbefc4e
7
- data.tar.gz: 030b305fc8bb4bcf9c504d683d33a1c5ca511e57c7fe97b86a276d2a5728c005119fe6c33db0f9db37e81c709a562755888bbe21a97310afc4c1c855c08f15dd
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.8"
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 = "APLv2"
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
- config_param :tag_prefix, :string, default: nil
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
- config_param :aggregate, default: 'tag' do |val|
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
- config_param :monitor_key, :string
35
- config_param :output_key_prefix, :string, default: nil
36
- config_param :percentiles, default: nil do |val|
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.8
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-07-22 00:00:00.000000000 Z
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
- - APLv2
77
+ - Apache-2.0
78
78
  metadata: {}
79
79
  post_install_message:
80
80
  rdoc_options: []