fluent-plugin-growthforecast 0.2.9 → 0.2.10

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: 6e9c30a880da0b703eb4e22e6498bc41340f9591
4
- data.tar.gz: 2cd31a2d3f374b0067bfc6dae5a51bbfac96f8cf
3
+ metadata.gz: ef0d60b16b223d025f2eff5ce5140e6693c5aa80
4
+ data.tar.gz: 398dbf4442dd0c4f77c9526817ae20d415482c7c
5
5
  SHA512:
6
- metadata.gz: 83ccc1decd1aded0f499001da929ba6edc2ddacd5587d20c518407415871a010e5c59c7462291e265a8aa9b8a37a6da325f5f08e5c4ba9f0c93fd256f3110df0
7
- data.tar.gz: ddac025bde8f4cadf0b1240dcce29a825ed8eeeff282e4cc8d65d356c7b3bf3e5a297f003a31afce39978962bd72de651aa23535fbca8b030b7b99ed9ec486ca
6
+ metadata.gz: 75da5f1a0124ef0471062392f146337eec2c0c408515650a71d345a7ea6d27c6b934a7aec05429e4522451a8b61ea557d84dc1945f80a8c2ba6e91d8681aa8fd
7
+ data.tar.gz: 7dc7885b232977389e7262a1ad506e97231b06708ed5baaf8bd02a45e654dcad8cc72eb64c55ec44059a52170ebd6dcfa0dd7289dfbba19faf5c18d221a37f1c
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.0.0
5
- - 2.1
6
- - 2.2
4
+ - 2.1.8
5
+ - 2.2.4
@@ -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.9"
5
+ gem.version = "0.2.10"
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)}
@@ -8,33 +8,73 @@ class Fluent::GrowthForecastOutput < Fluent::Output
8
8
  require 'resolve/hostname'
9
9
  end
10
10
 
11
- config_param :gfapi_url, :string # growth.forecast.local/api/
12
- config_param :graph_path, :string, :default => nil
13
- config_param :service, :string, :default => nil
14
- config_param :section, :string, :default => nil
15
- config_param :graphs, :string, :default => nil
16
-
17
- config_param :ssl, :bool, :default => false
18
- config_param :verify_ssl, :bool, :default => false
19
-
20
- config_param :name_keys, :string, :default => nil
21
- config_param :name_key_pattern, :string, :default => nil
22
-
23
- config_param :mode, :string, :default => 'gauge' # or count/modified
24
-
25
- config_param :remove_prefix, :string, :default => nil
26
- config_param :tag_for, :string, :default => 'name_prefix' # or 'ignore' or 'section' or 'service'
27
-
28
- config_param :background_post, :bool, :default => false
29
-
30
- config_param :timeout, :integer, :default => nil # default 60secs
31
- config_param :retry, :bool, :default => true
32
- config_param :keepalive, :bool, :default => true
33
- config_param :enable_float_number, :bool, :default => false
34
-
35
- config_param :authentication, :string, :default => nil # nil or 'none' or 'basic'
36
- config_param :username, :string, :default => ''
37
- config_param :password, :string, :default => '', :secret => true
11
+ config_param :gfapi_url, :string, # growth.forecast.local/api/
12
+ :desc => 'The URL of a GrowthForecast API endpoint.'
13
+ config_param :graph_path, :string, :default => nil,
14
+ :desc => <<-DESC
15
+ The graph path for GrowthForecast API endpoint with the order of service, section, graph_name.
16
+ DESC
17
+ config_param :service, :string, :default => nil,
18
+ :desc => 'The service_name of graphs to create.'
19
+ config_param :section, :string, :default => nil,
20
+ :desc => 'The section_name of graphs to create.'
21
+ config_param :graphs, :string, :default => nil,
22
+ :desc => <<-DESC
23
+ You may use this option to specify graph names correspond to each of name_keys.
24
+ Separate by , (comma). The number of graph names must be same with the number of name_keys.
25
+ DESC
26
+
27
+ config_param :ssl, :bool, :default => false,
28
+ :desc => 'Use SSL (https) or not.'
29
+ config_param :verify_ssl, :bool, :default => false,
30
+ :desc => 'Do SSL verification or not.'
31
+
32
+ config_param :name_keys, :string, :default => nil,
33
+ :desc => <<-DESC
34
+ Specify field names of the input record. Separate by , (comma).
35
+ The values of these fields are posted as numbers, and names of thease fields are used as parts of grame_names.
36
+ Either of name_keys or name_key_pattern is required.
37
+ DESC
38
+ config_param :name_key_pattern, :string, :default => nil,
39
+ :desc => <<-DESC
40
+ Specify the field names of the input record by a regular expression.
41
+ The values of these fields are posted as numbers,
42
+ and names of thease fields are used as parts of grame_names.
43
+ Either of name_keys or name_key_pattern is required.
44
+ DESC
45
+
46
+ config_param :mode, :string, :default => 'gauge', # or count/modified
47
+ :desc => <<-DESC
48
+ The graph mode (either of gauge, count, or modified).
49
+ Just same as mode of GrowthForecast POST parameter.
50
+ DESC
51
+
52
+ config_param :remove_prefix, :string, :default => nil,
53
+ :desc => 'The prefix string which will be removed from the tag.'
54
+ config_param :tag_for, :string, :default => 'name_prefix', # or 'ignore' or 'section' or 'service'
55
+ :desc => 'Either of name_prefix, section, service, or ignore.'
56
+
57
+ config_param :background_post, :bool, :default => false,
58
+ :desc => 'Post to GrowthForecast in background thread, without retries for failures'
59
+
60
+ config_param :timeout, :integer, :default => nil, # default 60secs
61
+ :desc => 'Read/Write timeout seconds'
62
+ config_param :retry, :bool, :default => true,
63
+ :desc => <<-DESC
64
+ Do retry for HTTP request failures, or not.
65
+ This feature will be set as false for background_post yes automatically.
66
+ DESC
67
+ config_param :keepalive, :bool, :default => true,
68
+ :desc => 'Use a keepalive HTTP connection.'
69
+ config_param :enable_float_number, :bool, :default => false,
70
+ :desc => 'Post a floating number rather than an interger number.'
71
+
72
+ config_param :authentication, :string, :default => nil, # nil or 'none' or 'basic'
73
+ :desc => 'Specify basic if your GrowthForecast protected with basic authentication.'
74
+ config_param :username, :string, :default => '',
75
+ :desc => 'The username for authentication.'
76
+ config_param :password, :string, :default => '', :secret => true,
77
+ :desc => 'The password for authentication.'
38
78
 
39
79
  DEFAULT_GRAPH_PATH = {
40
80
  :ignore => '${service}/${section}/${key_name}',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-growthforecast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
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-02 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