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 +4 -4
- data/.travis.yml +2 -3
- data/fluent-plugin-growthforecast.gemspec +1 -1
- data/lib/fluent/plugin/out_growthforecast.rb +67 -27
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef0d60b16b223d025f2eff5ce5140e6693c5aa80
|
4
|
+
data.tar.gz: 398dbf4442dd0c4f77c9526817ae20d415482c7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75da5f1a0124ef0471062392f146337eec2c0c408515650a71d345a7ea6d27c6b934a7aec05429e4522451a8b61ea557d84dc1945f80a8c2ba6e91d8681aa8fd
|
7
|
+
data.tar.gz: 7dc7885b232977389e7262a1ad506e97231b06708ed5baaf8bd02a45e654dcad8cc72eb64c55ec44059a52170ebd6dcfa0dd7289dfbba19faf5c18d221a37f1c
|
data/.travis.yml
CHANGED
@@ -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.
|
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
|
-
|
13
|
-
config_param :
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
config_param :
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
config_param :
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
config_param :
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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.
|
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-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|