fluent-plugin-eventcounter 0.0.5 → 0.0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -4
- data/fluent-plugin-eventcounter.gemspec +1 -1
- data/lib/fluent/plugin/out_eventcounter.rb +3 -3
- metadata +2 -2
data/README.md
CHANGED
@@ -98,16 +98,16 @@ or
|
|
98
98
|
- Password for the redis server
|
99
99
|
- *default: nil*
|
100
100
|
|
101
|
-
- **
|
102
|
-
-
|
103
|
-
- *default:
|
101
|
+
- **redis_sentinels** (optional) - *array*
|
102
|
+
- A list of sentinel hosts for failover
|
103
|
+
- *default: `[]`*
|
104
104
|
|
105
105
|
- **redis_master_group_name** (optional) - *string*
|
106
106
|
- Sentinel master group name
|
107
107
|
- *default: mymaster*
|
108
108
|
|
109
109
|
- **redis_db_number** (optional)
|
110
|
-
- Redis DB (not used if `
|
110
|
+
- Redis DB (not used if `redis_sentinels` is set)
|
111
111
|
- *default: 0*
|
112
112
|
|
113
113
|
- **redis_output_key** (optional)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-eventcounter"
|
4
|
-
gem.version = "0.0.5"
|
4
|
+
gem.version = "0.0.5.1"
|
5
5
|
gem.authors = ["Sean Dick", "Change.org"]
|
6
6
|
gem.email = ["sean@change.org"]
|
7
7
|
gem.homepage = "https://github.com/change/fluent-plugin-eventcounter"
|
@@ -12,7 +12,7 @@ class Fluent::EventCounterOutput < Fluent::BufferedOutput
|
|
12
12
|
config_param :redis_port, :integer, :default => 6379
|
13
13
|
config_param :redis_password, :string, :default => nil
|
14
14
|
config_param :redis_db_number, :integer, :default => 0
|
15
|
-
config_param :
|
15
|
+
config_param :redis_sentinels, :array, :default => []
|
16
16
|
config_param :redis_master_group_name, :string, :default => 'mymaster'
|
17
17
|
config_param :redis_output_key, :string, :default => ''
|
18
18
|
|
@@ -34,8 +34,8 @@ class Fluent::EventCounterOutput < Fluent::BufferedOutput
|
|
34
34
|
super
|
35
35
|
unless @emit_only
|
36
36
|
@redis = begin
|
37
|
-
if @
|
38
|
-
sentinels =
|
37
|
+
if @redis_sentinels.length > 0
|
38
|
+
sentinels = @redis_sentinels.map {|host| {host: host, port: @redis_port} }
|
39
39
|
Redis.new(
|
40
40
|
url: "redis://#{@redis_master_group_name}",
|
41
41
|
sentinels: sentinels,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-eventcounter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5
|
4
|
+
version: 0.0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-02-
|
13
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|