logstash-output-influxdb 5.0.4 → 5.0.5

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
  SHA256:
3
- metadata.gz: f03ad5c1c1d190dc8061f056d905f2a0724328889d6fc6604785cb619fcf4a34
4
- data.tar.gz: 4477a48313fa99489aa54ad4d335e1f2197133cdc6005ce036bdf981953e4825
3
+ metadata.gz: f0c583b1e64590ea30dae2f977ed797accef58220fd9533f152ff02d78e89df1
4
+ data.tar.gz: 760f47347f39a7b438539b610eb8b25e3d3dfbab010c715570bffdb44bec786e
5
5
  SHA512:
6
- metadata.gz: d28394726a0a2c61be7e9ba53396a74f6ef6f9394d8030010cafcc95ccca9ca07aafd37b2337dd3e7cfbe5dbd31f6e931ea8b6328df51f1295311971ce819f46
7
- data.tar.gz: 9d0384a06e8c6dc40d064c65fea05d1432d5394baa74847af88b94bede63e75b1ace5d9d925358c4c04d12aeed0c2a1dcac295ec5f89ad605af1b6ca8b7f4596
6
+ metadata.gz: 787be81ec53cf2b88c6cec00ad4a7611505c53468a4e6fc01994db1e4541115f5f3d2ab273788cc1ee88856d0cb82ccc4888a0484f51e17ee56a19538c7a2bf4
7
+ data.tar.gz: 6bd2b7d7a6c76dc590fababda1e77e39264af6add655db58409d86df38795877ad59d72440ab643ee75edfb31b6280b8aefef163c56d894f72e7af01a66cc8ef
@@ -1,3 +1,6 @@
1
+ ## 5.0.5
2
+ - Added clarifying information for `send_as_tags` config option [#80](https://github.com/logstash-plugins/logstash-output-influxdb/pull/80)
3
+
1
4
  ## 5.0.4
2
5
  - Docs: Set the default_codec doc attribute.
3
6
 
@@ -186,7 +186,7 @@ The number of time to retry recoverable errors before dropping the events.
186
186
 
187
187
  A value of -1 will cause the plugin to retry indefinately.
188
188
  A value of 0 will cause the plugin to never retry.
189
- Otherwise it will retry up to the specified mumber of times.
189
+ Otherwise it will retry up to the specified number of times.
190
190
 
191
191
 
192
192
  [id="plugins-{type}s-{plugin}-measurement"]
@@ -229,7 +229,8 @@ The retention policy to use
229
229
 
230
230
  An array containing the names of fields to send to Influxdb as tags instead
231
231
  of fields. Influxdb 0.9 convention is that values that do not change every
232
- request should be considered metadata and given as tags.
232
+ request should be considered metadata and given as tags. Tags are only sent when
233
+ present in `data_points` or if `user_event_fields_for_data_points` is `true`.
233
234
 
234
235
  [id="plugins-{type}s-{plugin}-ssl"]
235
236
  ===== `ssl`
@@ -265,9 +266,7 @@ Automatically use fields from the event as the data points sent to Influxdb
265
266
 
266
267
  The user who has access to the named database
267
268
 
268
-
269
-
270
269
  [id="plugins-{type}s-{plugin}-common-options"]
271
270
  include::{include_path}/{type}.asciidoc[]
272
271
 
273
- :default_codec!:
272
+ :default_codec!:
@@ -89,9 +89,10 @@ class LogStash::Outputs::InfluxDB < LogStash::Outputs::Base
89
89
  # This only applies when use_event_fields_for_data_points is true.
90
90
  config :exclude_fields, :validate => :array, :default => ["@timestamp", "@version", "sequence", "message", "type"]
91
91
 
92
- # An array containing the names of fields to send to Influxdb as tags instead
93
- # of fields. Influxdb 0.9 convention is that values that do not change every
92
+ # An array containing the names of fields to send to Influxdb as tags instead
93
+ # of values. Influxdb 0.9 convention is that values that do not change every
94
94
  # request should be considered metadata and given as tags.
95
+ # Tags are only sent when present in `data_points` or if `use_event_fields_for_data_points` is `true`.
95
96
  config :send_as_tags, :validate => :array, :default => ["host"]
96
97
 
97
98
  # This setting controls how many events will be buffered before sending a batch
@@ -153,6 +154,8 @@ class LogStash::Outputs::InfluxDB < LogStash::Outputs::Base
153
154
 
154
155
  time = timestamp_at_precision(event.timestamp, @time_precision.to_sym)
155
156
  point = create_point_from_event(event)
157
+ exclude_fields!(point)
158
+ coerce_values!(point)
156
159
 
157
160
  if point.has_key?('time')
158
161
  unless @allow_time_override
@@ -162,8 +165,7 @@ class LogStash::Outputs::InfluxDB < LogStash::Outputs::Base
162
165
  end
163
166
  end
164
167
 
165
- exclude_fields!(point)
166
- coerce_values!(point)
168
+
167
169
 
168
170
  tags, point = extract_tags(point)
169
171
 
@@ -295,6 +297,7 @@ class LogStash::Outputs::InfluxDB < LogStash::Outputs::Base
295
297
  when :s then 1
296
298
  when :ms then 1000
297
299
  when :u then 1000000
300
+ when :n then 1000000000
298
301
  end
299
302
 
300
303
  (timestamp.to_f * multiplier).to_i
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-influxdb'
3
- s.version = '5.0.4'
3
+ s.version = '5.0.5'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Writes metrics to InfluxDB"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-influxdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.4
4
+ version: 5.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.6.11
149
+ rubygems_version: 2.6.13
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Writes metrics to InfluxDB