fluent-plugin-influxdb 1.1.0 → 2.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e7e725de952732ecd13619697db660c726654590
4
- data.tar.gz: cac3f23f7b11d13417c8e4e42d66502c72a9ff0c
2
+ SHA256:
3
+ metadata.gz: 427bd2411e7ed3bd9fb4ab791efdc537ed4cd38b9b7b4a3ab6b509f76564281d
4
+ data.tar.gz: 799ea20d99f2e31b7388fe4a9fb69882e6d0c44e90a318a79a1cc9776d205435
5
5
  SHA512:
6
- metadata.gz: 23dd436de2e4d05da0845ae241ec544e23e20950f289b09acaf673833e22f94b2527c7057de4eafcdf82bf4af0fc7bdb4d3efac3ee992bd69dbe2c1c8504eac6
7
- data.tar.gz: 8221b15b87748a38149e2393366f7f640b45aad12c68786bb6678ae20d2bf8a06f49479f6fa4005cbda5c515e88a8bbb3c4579c2a587c15958b6f35339778746
6
+ metadata.gz: fbe1891446cc18edd707469a31b073c4f694e3f0536700de55ac63260fb7f7dab42f879f800b6db0369ce5b123d4671f40d9ac44042b851903d77982f901fbc1
7
+ data.tar.gz: afd37776dd804687ad12cfa919b17e3f401964a5a509a3811bef4cb221387f35c6aa54e639a7da6550d766b01b66139ee0b2b30d61cdc72f5a79ea4a912af7a6
data/History.md CHANGED
@@ -1,5 +1,13 @@
1
1
  Changelog
2
- =========
2
+
3
+ 2.1.0 (Sep, 27, 2024)
4
+
5
+ - Update influxdb-ruby gem dependency to 0.9 for ruby 3.x support
6
+
7
+ 2.0.0 (Jan, 21, 2019)
8
+ =====
9
+
10
+ - Update influxdb-ruby gem dependency to 0.7 and drop ruby 2.2 or earlier support
3
11
 
4
12
  1.1.0 (Jan, 21, 2019)
5
13
  =====
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.1.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.9"]
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,15 +1,15 @@
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.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  - FangLi
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-22 00:00:00.000000000 Z
12
+ date: 2024-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -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.9'
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.9'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: rake
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +115,7 @@ homepage: https://github.com/fangli/fluent-plugin-influxdb
115
115
  licenses:
116
116
  - MIT
117
117
  metadata: {}
118
- post_install_message:
118
+ post_install_message:
119
119
  rdoc_options: []
120
120
  require_paths:
121
121
  - lib
@@ -130,9 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 2.6.14.1
135
- signing_key:
133
+ rubygems_version: 3.4.1
134
+ signing_key:
136
135
  specification_version: 4
137
136
  summary: A buffered output plugin for fluentd and influxDB
138
137
  test_files: