fluent-plugin-influxdb 0.2.7 → 0.2.8

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: 19ed5ac1760f771e950cd309fd82c7762b7ce0ba
4
- data.tar.gz: c0ef1cc12321bd4270b46ad6f077302ae587a82f
3
+ metadata.gz: d2043134621024be6c56a137fd6e8a1c9049541c
4
+ data.tar.gz: c35031b1346f574647e69bd764196eae535c6a34
5
5
  SHA512:
6
- metadata.gz: 5294012a219916c4cf1bf943c3980cedb6cd03f8c22553e5b4a8ac226cc7aa1866d6877b4332192e8c7899b74caf0282ebba9ac4029d16cf53fc1816ba4934da
7
- data.tar.gz: 28663a91913a16451713e89b2278eb35b948c386a7154ab8b0c8535d079fab7ade8781e69caac7f5030a6e2c59fdf6e1a5c87236d83267b437f076a5da766301
6
+ metadata.gz: 732a45ad107758908151104d839e7dd39eaa161cce9f3db2cae35935d58f3f292912bdff5898f3106cc8d648b0fc765c663ebe7c6c42a4f8f9a77e9c8ea7df73
7
+ data.tar.gz: 56b46a92c366c8695525f7fe8124c8b19eba9a87f4b849fa043de1b7a3b56dc0a3567b164195764cba6f2696e37fbf3de467b256aa8791b7c55240cad3a43d92
data/History.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.2.8 (July, 06, 2016)
5
+ =====
6
+
7
+ - Accept comma-separated multiple hosts in host parameter
8
+
4
9
  0.2.7 (May, 10, 2016)
5
10
  =====
6
11
 
data/README.md CHANGED
@@ -13,6 +13,14 @@ If you are using InfluxDB version 0.8 please specify version 0.1.8 of this plugi
13
13
 
14
14
  $ fluent-gem install fluent-plugin-influxdb
15
15
 
16
+ ### Ruby 2.0 or earlier
17
+
18
+ `influxdb` gem requires `cause` gem in Ruby 2.0 or earlier. If you want to use `fluent-plugin-influxdb` with Ruby 2.0 or earlier,
19
+ you should install `cause` gem before install `fluent-plugin-influxdb`.
20
+
21
+ We don't recommend to use Ruby 2.0 or earlier version because these are EOL.
22
+ If you don't have a problem, use ruby 2.1 or later in production.
23
+
16
24
  ## Usage
17
25
 
18
26
  Just like other regular output plugins, Use type `influxdb` in your fluentd configuration under `match` scope:
@@ -23,7 +31,7 @@ Just like other regular output plugins, Use type `influxdb` in your fluentd conf
23
31
 
24
32
  **Options:**
25
33
 
26
- `host`: The IP or domain of influxDB, default to "localhost"
34
+ `host`: The IP or domain of influxDB, separate with comma, default to "localhost"
27
35
 
28
36
  `port`: The HTTP port of influxDB, default to 8086
29
37
 
@@ -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-influxdb"
6
- s.version = '0.2.7'
6
+ s.version = '0.2.8'
7
7
  s.authors = ["Masahiro Nakagawa", "FangLi"]
8
8
  s.email = ["repeatedly@gmail.com", "surivlee@gmail.com"]
9
9
  s.description = %q{InfluxDB output plugin for Fluentd}
@@ -1,6 +1,8 @@
1
1
  # encoding: UTF-8
2
2
  require 'date'
3
3
  require 'influxdb'
4
+ require 'fluent/output'
5
+ require 'fluent/mixin'
4
6
 
5
7
  class Fluent::InfluxdbOutput < Fluent::BufferedOutput
6
8
  Fluent::Plugin.register_output('influxdb', self)
@@ -8,7 +10,7 @@ class Fluent::InfluxdbOutput < Fluent::BufferedOutput
8
10
  include Fluent::HandleTagNameMixin
9
11
 
10
12
  config_param :host, :string, :default => 'localhost',
11
- :desc => "The IP or domain of influxDB."
13
+ :desc => "The IP or domain of influxDB, separate with comma."
12
14
  config_param :port, :integer, :default => 8086,
13
15
  :desc => "The HTTP port of influxDB."
14
16
  config_param :dbname, :string, :default => 'fluentd',
@@ -63,7 +65,7 @@ DESC
63
65
  $log.info "Connecting to database: #{@dbname}, host: #{@host}, port: #{@port}, username: #{@user}, use_ssl = #{@use_ssl}, verify_ssl = #{@verify_ssl}"
64
66
 
65
67
  # ||= for testing.
66
- @influxdb ||= InfluxDB::Client.new @dbname, host: @host,
68
+ @influxdb ||= InfluxDB::Client.new @dbname, hosts: @host.split(','),
67
69
  port: @port,
68
70
  username: @user,
69
71
  password: @password,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-influxdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-09 00:00:00.000000000 Z
12
+ date: 2016-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd