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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19011ab6e44bb3ce1711bcac6f1bf1052364ca1d
4
- data.tar.gz: 5601aa756c94e9386cae4927d3e5fe2597ddb480
3
+ metadata.gz: 692e96b32bfef9d0899adab0f89539f9e41e24ac
4
+ data.tar.gz: dc861b7a69a2e0486e3c188c6744da1fc2925a18
5
5
  SHA512:
6
- metadata.gz: 2c44650fb0c06d5198566c2706d089f76ef76378560fcc52cc0287aca7be05ae2cb60e0c887ab85f405fea0ed807787a5b2a69413c214434b8cd0e8476334a35
7
- data.tar.gz: cacaa5f3e27e44a7e08740167e4738baad00e5de945efdc9aca9a2e33de514e8f598afae7b2d2164541efffbc6541e530dbd7cdd89d2918c4e6b027c5f2f5f92
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)
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "fluent-plugin-mysql-query"
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
  s.license = "Apache-2.0"
7
7
  s.authors = ["Kentaro Yoshida"]
8
8
  s.email = ["y.ken.studio@gmail.com"]
@@ -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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mysql-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Yoshida