fluent-plugin-influxdb 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.md +5 -0
- data/README.md +9 -1
- data/fluent-plugin-influxdb.gemspec +1 -1
- data/lib/fluent/plugin/out_influxdb.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2043134621024be6c56a137fd6e8a1c9049541c
|
|
4
|
+
data.tar.gz: c35031b1346f574647e69bd764196eae535c6a34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 732a45ad107758908151104d839e7dd39eaa161cce9f3db2cae35935d58f3f292912bdff5898f3106cc8d648b0fc765c663ebe7c6c42a4f8f9a77e9c8ea7df73
|
|
7
|
+
data.tar.gz: 56b46a92c366c8695525f7fe8124c8b19eba9a87f4b849fa043de1b7a3b56dc0a3567b164195764cba6f2696e37fbf3de467b256aa8791b7c55240cad3a43d92
|
data/History.md
CHANGED
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.
|
|
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,
|
|
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.
|
|
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
|
|
12
|
+
date: 2016-07-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fluentd
|