fluent-plugin-aggregate 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/filter_aggregate.rb +10 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43da106773a7f5adf03bb9b18ce179b7c2f89af257f441d7fb2313c80f360389
|
4
|
+
data.tar.gz: 2dd826dfd9d92a441691d105fbfe5dfe4ee32249e50143c70c995b96116b3076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 909442b774896dcf6fa566ee21f024302d65ba4e20fad228bbcd957831e8b3d61e0ff6c6e5d121234ccbef5daf81c0236eb5b01da40117d910981ccb2811a800
|
7
|
+
data.tar.gz: 3e2938e59f62b9c053afbbac1e4af0448c40cec05042f6a80d05f60c60dbe3dd84758cbf9a8865224aa0b9be1e46426a11f391d9fcc2b9ea6532fb6573d5e9fd
|
@@ -6,17 +6,20 @@ module Fluent
|
|
6
6
|
config_param :output_time_format, :string, :default =>'%Y-%m-%dT%H:%M:%S.%L%z'
|
7
7
|
config_param :intervals, :array, :default =>[5], value_type: :time,
|
8
8
|
:desc => 'Interval for accumulative aggregation'
|
9
|
+
config_param :interval, :array, :default =>nil, value_type: :time,
|
10
|
+
:desc => 'Interval for accumulative aggregation, legacy option',
|
11
|
+
:deprecated => 'Use intervals instead'
|
9
12
|
config_param :flush_interval, :time, :default =>5,
|
10
13
|
:desc => 'Interval for emmit aggregation events'
|
11
14
|
config_param :keep_interval, :time, :default =>10,
|
12
15
|
:desc => 'Interval to wait for events to aggregate'
|
13
|
-
config_param :group_fields, :
|
14
|
-
config_param :aggregate_fields, :
|
16
|
+
config_param :group_fields, :array, :default => ['field1','field2'], value_type: :string
|
17
|
+
config_param :aggregate_fields, :array, :default => ['aggregate_field1','aggregate_field2'], value_type: :string
|
15
18
|
config_param :time_field, :string, :default =>'timestamp'
|
16
19
|
config_param :field_no_data_value, :string, :default =>'no_data'
|
17
20
|
config_param :emit_original_message, :bool, :default => true
|
18
21
|
config_param :aggregate_event_tag, :string, :default => 'aggregate'
|
19
|
-
config_param :aggregations, :
|
22
|
+
config_param :aggregations, :array, :default => ['sum','min','max','mean','median','variance','standard_deviation'], value_type: :string
|
20
23
|
config_param :temporary_status_file_path, :string, :default => nil, :desc => 'File to store aggregate information when the agent down'
|
21
24
|
config_param :load_temporarystatus_file_enabled, :bool, :default => true, :desc => 'Enable load saved data from file (if exist status file)'
|
22
25
|
config_param :processing_mode, :string, :default => 'online', :desc => 'Processing mode (batch/online)'
|
@@ -32,6 +35,7 @@ module Fluent
|
|
32
35
|
|
33
36
|
require 'dataoperations-aggregate'
|
34
37
|
|
38
|
+
@intervals = @interval unless @interval.nil?
|
35
39
|
@hash_time_format = "%Y-%m-%dT%H"
|
36
40
|
@interval_seconds = 3600
|
37
41
|
@intervals[1..-1].each{|interval|
|
@@ -45,9 +49,9 @@ module Fluent
|
|
45
49
|
end
|
46
50
|
}
|
47
51
|
|
48
|
-
@group_field_names = @group_fields
|
49
|
-
@aggregate_field_names = @aggregate_fields
|
50
|
-
@aggregation_names = @aggregations
|
52
|
+
@group_field_names = @group_fields
|
53
|
+
@aggregate_field_names = @aggregate_fields
|
54
|
+
@aggregation_names = @aggregations
|
51
55
|
@aggregator_name = "#{Socket.gethostname}"
|
52
56
|
@aggregator_name = "#{@aggregator_name}-#{@aggregator_suffix_name}" unless @aggregator_suffix_name.nil?
|
53
57
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-aggregate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- superguillen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|