logstash-output-influxdb 3.1.2 → 4.0.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 +4 -4
- data/CHANGELOG.md +10 -2
- data/LICENSE +1 -1
- data/README.md +12 -3
- data/lib/logstash/outputs/influxdb.rb +0 -2
- data/logstash-output-influxdb.gemspec +3 -4
- data/spec/outputs/influxdb_spec.rb +7 -6
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d30a313b6e704668859f42ae9b5023624fbf35e
|
4
|
+
data.tar.gz: c5b7c44f82b8098a727713596cc1762dc92a0893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a22503dc7cecf37e1f71ca21aa2aa8404f5547756b326b25b529eb45f335056b3eb4ce3a426e00a13be4fc11c4ab1be28ee1474fb547e48b8babae15e2b926eb
|
7
|
+
data.tar.gz: 73f9fa98aa9e32f7d9f9facd88dd221e87b5e7518607b66ebc890e587387f24ee0efc05e0b907b702807085e59ff79ccd721ecb6770719be767b3f4bf71f1562
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
-
|
1
|
+
## 4.0.0
|
2
|
+
- Breaking: Updated plugin to use new Java Event APIs
|
3
|
+
- Fix the suite related to the new java event and the ordering of the keys in the hash.
|
4
|
+
- Relax logstash-core-plugin-api constraints
|
5
|
+
- update .travis.yml
|
6
|
+
|
7
|
+
## 3.1.2
|
2
8
|
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
3
|
-
|
9
|
+
|
10
|
+
## 3.1.1
|
4
11
|
- New dependency requirements for logstash-core for the 5.0 release
|
12
|
+
|
5
13
|
## 3.1.0
|
6
14
|
- New option to enable SSL/TLS encrypted communication to InfluxDB
|
7
15
|
- DB parameter now supports sprintf formatting
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -4,8 +4,7 @@
|
|
4
4
|
|
5
5
|
# Logstash Plugin
|
6
6
|
|
7
|
-
[](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-influxdb-unit/)
|
7
|
+
[](https://travis-ci.org/logstash-plugins/logstash-output-influxdb)
|
9
8
|
|
10
9
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
11
10
|
|
@@ -60,7 +59,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
|
60
59
|
```
|
61
60
|
- Install plugin
|
62
61
|
```sh
|
62
|
+
# Logstash 2.3 and higher
|
63
|
+
bin/logstash-plugin install --no-verify
|
64
|
+
|
65
|
+
# Prior to Logstash 2.3
|
63
66
|
bin/plugin install --no-verify
|
67
|
+
|
64
68
|
```
|
65
69
|
- Run Logstash with your plugin
|
66
70
|
```sh
|
@@ -78,7 +82,12 @@ gem build logstash-filter-awesome.gemspec
|
|
78
82
|
```
|
79
83
|
- Install the plugin from the Logstash home
|
80
84
|
```sh
|
81
|
-
|
85
|
+
# Logstash 2.3 and higher
|
86
|
+
bin/logstash-plugin install --no-verify
|
87
|
+
|
88
|
+
# Prior to Logstash 2.3
|
89
|
+
bin/plugin install --no-verify
|
90
|
+
|
82
91
|
```
|
83
92
|
- Start Logstash and proceed to test the plugin
|
84
93
|
|
@@ -1,10 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
|
-
|
3
2
|
s.name = 'logstash-output-influxdb'
|
4
|
-
s.version = '
|
3
|
+
s.version = '4.0.0'
|
5
4
|
s.licenses = ['Apache License (2.0)']
|
6
5
|
s.summary = "This output lets you output Metrics to InfluxDB"
|
7
|
-
s.description = "This gem is a
|
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"
|
8
7
|
s.authors = ["Elastic"]
|
9
8
|
s.email = 'info@elastic.co'
|
10
9
|
s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
|
@@ -20,7 +19,7 @@ Gem::Specification.new do |s|
|
|
20
19
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
|
21
20
|
|
22
21
|
# Gem dependencies
|
23
|
-
s.add_runtime_dependency "logstash-core-plugin-api", "
|
22
|
+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
24
23
|
|
25
24
|
s.add_runtime_dependency 'stud'
|
26
25
|
s.add_runtime_dependency 'manticore'
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require "logstash/devutils/rspec/spec_helper"
|
2
3
|
require "logstash/outputs/influxdb"
|
3
4
|
require "manticore"
|
@@ -72,7 +73,7 @@ describe LogStash::Outputs::InfluxDB do
|
|
72
73
|
end
|
73
74
|
|
74
75
|
let(:expected_url) { 'http://localhost:8086/write?db=statistics&rp=default&precision=ms&u=&p='}
|
75
|
-
let(:expected_body) { 'my_series
|
76
|
+
let(:expected_body) { 'my_series bar="2",foo="1" 3' }
|
76
77
|
|
77
78
|
it "should use the event fields as the data points, excluding @version and @timestamp by default as well as any fields configured by exclude_fields" do
|
78
79
|
expect_any_instance_of(Manticore::Client).to receive(:post!).with(expected_url, body: expected_body)
|
@@ -348,7 +349,7 @@ describe LogStash::Outputs::InfluxDB do
|
|
348
349
|
end
|
349
350
|
|
350
351
|
let(:expected_url) { 'http://localhost:8086/write?db=statistics&rp=default&precision=ms&u=&p='}
|
351
|
-
let(:expected_body) { 'my_series
|
352
|
+
let(:expected_body) { 'my_series bar=2.0,foo=1,baz="\\\"quotes\\\"" 3' } # We want the backslash and the escaped-quote in the request body
|
352
353
|
|
353
354
|
it "should quote all other values (and escaping double quotes)" do
|
354
355
|
expect_any_instance_of(Manticore::Client).to receive(:post!).with(expected_url, body: expected_body)
|
@@ -390,7 +391,7 @@ describe LogStash::Outputs::InfluxDB do
|
|
390
391
|
end
|
391
392
|
|
392
393
|
let(:expected_url) { 'https://localhost:8086/write?db=statistics&rp=default&precision=ms&u=&p=' }
|
393
|
-
let(:expected_body) { 'barfoo
|
394
|
+
let(:expected_body) { 'barfoo bar="2",foo="1",baz="3" 4' }
|
394
395
|
|
395
396
|
it "should POST to an https URL" do
|
396
397
|
expect_any_instance_of(Manticore::Client).to receive(:post!).with(expected_url, body: expected_body)
|
@@ -436,7 +437,7 @@ describe LogStash::Outputs::InfluxDB do
|
|
436
437
|
end
|
437
438
|
|
438
439
|
let(:expected_url) { 'http://localhost:8086/write?db=barfoo&rp=default&precision=ms&u=&p=' }
|
439
|
-
let(:expected_body) { "m1
|
440
|
+
let(:expected_body) { "m1 bar=\"2\",foo=\"1\",baz=\"m1\" 1\nm2 bar=\"4\",foo=\"3\",baz=\"m2\" 2\nm2 bar=\"6\",foo=\"5\",baz=\"m2\" 3" }
|
440
441
|
|
441
442
|
it "should result in a single POST (one per database)" do
|
442
443
|
expect_any_instance_of(Manticore::Client).to receive(:post!).once
|
@@ -491,8 +492,8 @@ describe LogStash::Outputs::InfluxDB do
|
|
491
492
|
|
492
493
|
let(:expected_url_db1) { 'http://localhost:8086/write?db=db1&rp=default&precision=ms&u=&p=' }
|
493
494
|
let(:expected_url_db2) { 'http://localhost:8086/write?db=db2&rp=default&precision=ms&u=&p=' }
|
494
|
-
let(:expected_body_db1) { "m1
|
495
|
-
let(:expected_body_db2) { "m1
|
495
|
+
let(:expected_body_db1) { "m1 bar=\"db1\",foo=\"1\",baz=\"m1\" 1\nm2 bar=\"db1\",foo=\"2\",baz=\"m2\" 2" }
|
496
|
+
let(:expected_body_db2) { "m1 bar=\"db2\",foo=\"3\",baz=\"m1\" 3\nm2 bar=\"db2\",foo=\"4\",baz=\"m2\" 4" }
|
496
497
|
|
497
498
|
it "should result in two POSTs (one per database)" do
|
498
499
|
expect_any_instance_of(Manticore::Client).to receive(:post!).twice
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-influxdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - "<="
|
17
20
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
21
|
+
version: '2.99'
|
19
22
|
name: logstash-core-plugin-api
|
20
23
|
prerelease: false
|
21
24
|
type: :runtime
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.60'
|
30
|
+
- - "<="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '2.99'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
@@ -94,7 +100,7 @@ dependencies:
|
|
94
100
|
- - ">="
|
95
101
|
- !ruby/object:Gem::Version
|
96
102
|
version: '0'
|
97
|
-
description: This gem is a
|
103
|
+
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
|
98
104
|
email: info@elastic.co
|
99
105
|
executables: []
|
100
106
|
extensions: []
|