fluent-plugin-influxdb 1.1.0 → 2.0.0

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: e7e725de952732ecd13619697db660c726654590
4
- data.tar.gz: cac3f23f7b11d13417c8e4e42d66502c72a9ff0c
3
+ metadata.gz: 9a7747a186a454e9bb1aef75cd3fa488496216cb
4
+ data.tar.gz: fa1fa7ba83a2c3fbd91768890293e5aeed8d2898
5
5
  SHA512:
6
- metadata.gz: 23dd436de2e4d05da0845ae241ec544e23e20950f289b09acaf673833e22f94b2527c7057de4eafcdf82bf4af0fc7bdb4d3efac3ee992bd69dbe2c1c8504eac6
7
- data.tar.gz: 8221b15b87748a38149e2393366f7f640b45aad12c68786bb6678ae20d2bf8a06f49479f6fa4005cbda5c515e88a8bbb3c4579c2a587c15958b6f35339778746
6
+ metadata.gz: 6d75a0a35155965952b182000488e8854965d36fe36adfd984c1b4c78fd765c3bd3bf8327217e2f71e9ec8533ef7e8ec2933458a84a5951e3e7560f154cd108c
7
+ data.tar.gz: 5716695152a609cc7c4e113b8c71d079d23201c29ac028ff651b413e2ce0e2015b189c6b515f5199afa5725f19785f4e6384b3d12771b01a995760cc18ad1e19
data/History.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.0.0 (Jan, 21, 2019)
5
+ =====
6
+
7
+ - Update influxdb-ruby gem dependency to 0.7 and drop ruby 2.2 or earlier support
8
+
4
9
  1.1.0 (Jan, 21, 2019)
5
10
  =====
6
11
 
data/README.md CHANGED
@@ -4,31 +4,25 @@ fluent-plugin-influxdb is a buffered output plugin for fluentd and influxDB.
4
4
 
5
5
  If you are using fluentd as a collector and want to organize your time-series data in influxDB, this is your right choice!
6
6
 
7
- ## NOTE
8
-
9
- This version uses influxdb-ruby version 0.2.0 which no longer supports InfluxDB version 0.8 (which is also deprecated).
10
- If you are using InfluxDB version 0.8 please specify version 0.1.8 of this plugin.
11
-
12
7
  ## Requirements
13
8
 
14
9
  | fluent-plugin-influxdb | fluentd | ruby |
15
10
  |------------------------|---------|------|
11
+ | >= 2.0.0 | >= v1.0.0 | >= 2.3 |
16
12
  | >= 1.0.0 | >= v0.14.0 | >= 2.1 |
17
13
  | < 1.0.0 | >= v0.12.0 | >= 1.9 |
18
14
 
19
15
  ## Installation
20
16
 
21
- $ fluent-gem install fluent-plugin-influxdb -v "~> 0.3" --no-document # for fluentd v0.12 or later
22
- $ fluent-gem install fluent-plugin-influxdb --no-document # for fluentd v0.14 or later
17
+ $ fluent-gem install fluent-plugin-influxdb --no-document # for fluentd v1.0 or later
18
+ $ fluent-gem install fluent-plugin-influxdb -v "~> 1.0" --no-document # for fluentd v1.0 or later and ruby 2.2 or earlier
19
+ $ fluent-gem install fluent-plugin-influxdb -v "~> 0.3" --no-document # for fluentd v0.12 or later and ruby 2.0 or earlier
23
20
 
24
21
  ### Ruby 2.0 or earlier
25
22
 
26
23
  `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,
27
24
  you should install `cause` gem before install `fluent-plugin-influxdb`.
28
25
 
29
- We don't recommend to use Ruby 2.0 or earlier version because these are EOL.
30
- If you don't have a problem, use ruby 2.1 or later in production.
31
-
32
26
  ## Usage
33
27
 
34
28
  Just like other regular output plugins, Use type `influxdb` in your fluentd configuration under `match` scope:
@@ -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 = '1.1.0'
6
+ s.version = '2.0.0'
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}
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_runtime_dependency "fluentd", [">= 0.10.49", "< 2"]
20
- s.add_runtime_dependency "influxdb", [">= 0.2.0", "< 0.4"]
19
+ s.add_runtime_dependency "fluentd", [">= 1.0", "< 2"]
20
+ s.add_runtime_dependency "influxdb", [">= 0.7.0", "< 0.8"]
21
21
 
22
22
  s.add_development_dependency "rake"
23
23
  s.add_development_dependency "pry"
@@ -106,7 +106,7 @@ DESC
106
106
  def format(tag, time, record)
107
107
  # nil and '' check should be in influxdb-ruby client...
108
108
  if record.empty? || record.has_value?(nil) || record.has_value?(EMPTY_STRING)
109
- log.warn "Skip record '#{record}' in '#{tag}', because either record has no value or at least a value is 'nil' inside the record."
109
+ log.warn "Skip record '#{record}' in '#{tag}', because either record has no value or at least a value is 'nil' or empty string inside the record."
110
110
  FORMATTED_RESULT_FOR_INVALID_RECORD
111
111
  else
112
112
  [precision_time(time), record].to_msgpack
@@ -187,12 +187,6 @@ class InfluxdbOutputTest < Test::Unit::TestCase
187
187
  assert_equal([
188
188
  [
189
189
  [
190
- {
191
- timestamp: time,
192
- series: 'input.influxdb',
193
- values: {'a' => 1},
194
- tags: {},
195
- },
196
190
  {
197
191
  timestamp: time,
198
192
  series: 'input.influxdb',
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: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
@@ -17,7 +17,7 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 0.10.49
20
+ version: '1.0'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
23
  version: '2'
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: 0.10.49
30
+ version: '1.0'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2'
@@ -37,20 +37,20 @@ dependencies:
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.0
40
+ version: 0.7.0
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '0.4'
43
+ version: '0.8'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 0.2.0
50
+ version: 0.7.0
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.4'
53
+ version: '0.8'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: rake
56
56
  requirement: !ruby/object:Gem::Requirement