fluent-plugin-redis 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +20 -0
- data/README.rdoc +11 -4
- data/VERSION +1 -1
- data/fluent-plugin-redis.gemspec +1 -2
- data/lib/fluent/plugin/out_redis.rb +8 -5
- metadata +2 -12
data/CHANGELOG.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
## 0.1.3
|
2
|
+
|
3
|
+
* Colored the log message added on v0.1.2.
|
4
|
+
|
5
|
+
## 0.1.2
|
6
|
+
|
7
|
+
* Shows a warning message when trying to use namespace option.
|
8
|
+
|
9
|
+
## 0.1.1
|
10
|
+
|
11
|
+
* Disabled Redis::Namespace operation.
|
12
|
+
|
13
|
+
## 0.1.0
|
14
|
+
|
15
|
+
* Specified the versions of dependencies(fluent, redis and redis-namespace).
|
16
|
+
|
17
|
+
## 0.0.1
|
18
|
+
|
19
|
+
* This initial plugin is released.
|
20
|
+
|
data/README.rdoc
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
= Redis output plugin for Fluent
|
2
2
|
|
3
|
+
fluent-plugin-redis is a fluent plugin to output to redis.
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
What you have to do is only installing like this:
|
8
|
+
|
9
|
+
gem install fluent-plugin-redis
|
10
|
+
|
11
|
+
Then fluent automatically loads the plugin installed.
|
12
|
+
|
3
13
|
== Configuratin
|
4
14
|
|
5
15
|
<match redis.**>
|
@@ -8,11 +18,8 @@
|
|
8
18
|
host localhost
|
9
19
|
port 6379
|
10
20
|
|
11
|
-
# database number
|
21
|
+
# database number is optional.
|
12
22
|
db_number 0 # 0 is default
|
13
|
-
namespace fluent # 'fluent' is default
|
14
|
-
|
15
|
-
# Other buffer configurations here
|
16
23
|
</match>
|
17
24
|
|
18
25
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/fluent-plugin-redis.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-redis"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.3"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Yuki Nishijima"]
|
9
9
|
s.date = %q{2011-09-30}
|
@@ -18,5 +18,4 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.add_dependency %q<fluent>, ["~> 0.9.14"]
|
20
20
|
s.add_dependency %q<redis>, ["~> 2.2.2"]
|
21
|
-
s.add_dependency %q<redis-namespace>, ["~> 1.1.0"]
|
22
21
|
end
|
@@ -4,7 +4,7 @@ module Fluent
|
|
4
4
|
|
5
5
|
def initialize
|
6
6
|
super
|
7
|
-
require 'redis
|
7
|
+
require 'redis'
|
8
8
|
require 'msgpack'
|
9
9
|
end
|
10
10
|
|
@@ -14,14 +14,17 @@ module Fluent
|
|
14
14
|
@host = conf.has_key?('host') ? conf['host'] : 'localhost'
|
15
15
|
@port = conf.has_key?('port') ? conf['port'] : 6379
|
16
16
|
@db = conf.has_key?('db') ? conf['db'] : nil
|
17
|
-
|
17
|
+
|
18
|
+
if conf.has_key?('namespace')
|
19
|
+
$log.warn "Namespace option has been removed from fluent-plugin-radis 0.1.1. Please add or remove the namespace '#{conf['namespace']}' manually."
|
20
|
+
end
|
18
21
|
end
|
19
22
|
|
20
23
|
def start
|
21
24
|
super
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
+
|
26
|
+
@redis = Redis.new(:host => @host, :port => @port,
|
27
|
+
:thread_safe => true, :db => @db)
|
25
28
|
end
|
26
29
|
|
27
30
|
def shutdown
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: fluent-plugin-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Yuki Nishijima
|
@@ -34,17 +34,6 @@ dependencies:
|
|
34
34
|
version: 2.2.2
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: redis-namespace
|
39
|
-
prerelease: false
|
40
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.1.0
|
46
|
-
type: :runtime
|
47
|
-
version_requirements: *id003
|
48
37
|
description:
|
49
38
|
email: mail@yukinishijima.net
|
50
39
|
executables: []
|
@@ -55,6 +44,7 @@ extra_rdoc_files: []
|
|
55
44
|
|
56
45
|
files:
|
57
46
|
- .gitignore
|
47
|
+
- CHANGELOG.md
|
58
48
|
- Gemfile
|
59
49
|
- README.rdoc
|
60
50
|
- Rakefile
|