fluent-plugin-influxdb 0.1.0 → 0.1.2

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
2
  SHA1:
3
- metadata.gz: e0bf2fdba5bf409df21056b7535b48aa42fe647a
4
- data.tar.gz: a9f986c7cb0d934eaf0719986f7522137596c575
3
+ metadata.gz: 31241c0d29bbf9d7442afa7d5f6d95e0a14c754a
4
+ data.tar.gz: ab28d482facd88629c06e1193c80755f87708179
5
5
  SHA512:
6
- metadata.gz: d0b1f437ae5f239c75cd4e538fad64309ffc6a001a59bd4bd6342041256e8ead963f06b0607c496ce929b7c66346f564cc2c60cd027b0f3ea7d09b15ccd239d7
7
- data.tar.gz: 973227cf17b6a02d5188cbfd0110cfc3605added81f9c5d6c5a458798bd6a9ebd86bfc838af5e70672b478d03fb1fe7f3dcd010339ec906d5eed7f6ddbdc4648
6
+ metadata.gz: 2d856b411ddfe9006b1a0fdbc1d0974c6ae0cd6b8f1b73ac9db3a5946d2bb7c3e557247ccfbec7e9d05450bec9f371423eba85da6fb0e6dbce3ad71f4a829a5e
7
+ data.tar.gz: 602a42ec0f0edc4ae7e61fbcc90679913c90a159ad6312d90c7950898b95f480f5219651c870d76b1e9a1309f2445ee9ee8f822942a7461beaba823af2b33858
data/History.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.1.2
5
+ =====
6
+
7
+ - Remove value recognize from configuration
8
+
4
9
  0.1.0
5
10
  =====
6
11
 
data/README.md CHANGED
@@ -27,12 +27,6 @@ Just like other regular output plugins, Use type `influxdb` in your fluentd conf
27
27
  `user`: The DB user of influxDB, should be created manually, default to "root"
28
28
 
29
29
  `password`: The password of the user, default to "root"
30
-
31
- `value_field`: The original data field in fluentd, default to "_value".
32
-
33
- If you have a fluentd time-series schema like this:
34
- my.metric.name 1386000000 {"k1":"v1","k2":"v2","count":2.3}
35
- And apparently the field "count" is the value field, you should set it to "count"
36
30
 
37
31
  `time_precision`: The time precision of timestamp. default to "s". should specify either second (s), millisecond (m), or microsecond (u)
38
32
 
@@ -49,7 +43,6 @@ Just like other regular output plugins, Use type `influxdb` in your fluentd conf
49
43
  dbname test
50
44
  user testuser
51
45
  password mypwd
52
- value_field count
53
46
  time_precision s
54
47
  </match>
55
48
  ```
@@ -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.1.0'
6
+ s.version = '0.1.2'
7
7
  s.authors = ["FangLi"]
8
8
  s.email = ["surivlee@gmail.com"]
9
9
  s.description = %q{InfluxDB output plugin for Fluentd}
@@ -10,7 +10,6 @@ class Fluent::InfluxdbOutput < Fluent::BufferedOutput
10
10
  config_param :dbname, :string, :default => 'fluentd'
11
11
  config_param :user, :string, :default => 'root'
12
12
  config_param :password, :string, :default => 'root'
13
- config_param :value_field, :string, :default => '_value'
14
13
  config_param :time_precision, :string, :default => 's'
15
14
 
16
15
 
@@ -38,14 +37,10 @@ class Fluent::InfluxdbOutput < Fluent::BufferedOutput
38
37
  bulk = []
39
38
 
40
39
  chunk.msgpack_each do |tag, time, record|
41
-
42
- value = record[@value_field]
43
- record.delete(@value_field)
44
-
45
40
  bulk << {
46
41
  'name' => tag,
47
- 'columns' => ['time', 'value'].concat(record.keys),
48
- 'points' => [[time, value].concat(record.values)],
42
+ 'columns' => record.keys << 'time',
43
+ 'points' => [record.values << time],
49
44
  }
50
45
  end
51
46
 
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.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - FangLi