fluent-plugin-mysql-query 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/fluent-plugin-mysql-query.gemspec +1 -1
- data/lib/fluent/plugin/in_mysql_query.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 692e96b32bfef9d0899adab0f89539f9e41e24ac
|
4
|
+
data.tar.gz: dc861b7a69a2e0486e3c188c6744da1fc2925a18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92f0500c0753f9aecebe18c01a35de31fa82e872d0edb6f6e4ca9a87973d5759cf703d832217251dbcc7547648c9e8e6a2d0f3cf1f7568252cae30a8c4c809ee
|
7
|
+
data.tar.gz: cdb5e9764c1b316e17f0d619fe0e8f2deba435e3cbe41ae632bf9f8f1270e6e7d3766d5927f3fc5437a15dc2b7b8e5d6e0f391ca0458895d249406757259b293
|
data/README.md
CHANGED
@@ -30,6 +30,7 @@ $ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-mysql-query
|
|
30
30
|
@type mysql_query
|
31
31
|
host localhost # Optional (default: localhost)
|
32
32
|
port 3306 # Optional (default: 3306)
|
33
|
+
socket /tmp/mysql.sock # Optional (default: the host's MySQL library default)
|
33
34
|
username nagios # Optional (default: root)
|
34
35
|
password passw0rd # Optional (default nopassword)
|
35
36
|
interval 30s # Optional (default: 1m)
|
@@ -9,6 +9,7 @@ module Fluent::Plugin
|
|
9
9
|
|
10
10
|
config_param :host, :string, default: 'localhost'
|
11
11
|
config_param :port, :integer, default: 3306
|
12
|
+
config_param :socket, :string, default: nil
|
12
13
|
config_param :username, :string, default: 'root'
|
13
14
|
config_param :password, :string, default: nil, secret: true
|
14
15
|
config_param :database, :string, default: nil
|
@@ -55,6 +56,7 @@ module Fluent::Plugin
|
|
55
56
|
return Mysql2::Client.new({
|
56
57
|
host: @host,
|
57
58
|
port: @port,
|
59
|
+
socket: @socket,
|
58
60
|
username: @username,
|
59
61
|
password: @password,
|
60
62
|
database: @database,
|