logstash-input-graphite 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/logstash-input-graphite.gemspec +1 -1
- data/spec/inputs/graphite_spec.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5516dd5899c069a2fdf3bbbf2e9e7b17d047562c
|
4
|
+
data.tar.gz: 0df234b36b4773300c8d8ab5adc2f7c6db873789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a61edf17f052e6fa7d8cddb7630da22dde44bcccee4c062141683dc74de50fabb398072cc80c9809f5b9aca69f49f2cbb1ee2ee78e12741311aa255dc664be9
|
7
|
+
data.tar.gz: 8e4473e8c8943404b54560553dc296c49ae365457636d3a732508f7658a5bbf40c8d1227b435598fccc1548583b888e2cd9e001ac3d67b7ad2d00affbbd31801
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
## 2.0.3
|
2
|
+
- fixed specs for time handling
|
3
|
+
|
1
4
|
## 2.0.2
|
2
5
|
- added comments and basic specs
|
6
|
+
|
3
7
|
## 2.0.0
|
4
8
|
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
5
9
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-graphite'
|
4
|
-
s.version = '2.0.
|
4
|
+
s.version = '2.0.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Receive graphite metrics"
|
7
7
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|
@@ -51,8 +51,8 @@ describe LogStash::Inputs::Graphite do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
it "should support using N as current timestamp" do
|
54
|
-
time = LogStash::Timestamp.
|
55
|
-
expect(
|
54
|
+
time = LogStash::Timestamp.now
|
55
|
+
expect(LogStash::Timestamp).to receive(:now) { time }
|
56
56
|
result = helper.pipelineless_input(subject, 1) do
|
57
57
|
client.write "a.b.c 10 N\n"
|
58
58
|
end
|
@@ -61,12 +61,12 @@ describe LogStash::Inputs::Graphite do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
it "should support using N as current timestamp" do
|
64
|
-
time = Time.
|
64
|
+
time = Time.now
|
65
65
|
result = helper.pipelineless_input(subject, 1) do
|
66
66
|
client.write "a.b.c 10 #{time.to_i}\n"
|
67
67
|
end
|
68
68
|
expect(result.size).to eq(1)
|
69
|
-
expect(result.first["@timestamp"]).to eq(LogStash::Timestamp.
|
69
|
+
expect(result.first["@timestamp"]).to eq(LogStash::Timestamp.at(time.to_i))
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-graphite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|
@@ -68,8 +68,8 @@ files:
|
|
68
68
|
- spec/spec_helper.rb
|
69
69
|
- spec/inputs/graphite_spec.rb
|
70
70
|
- logstash-input-graphite.gemspec
|
71
|
-
- CHANGELOG.md
|
72
71
|
- README.md
|
72
|
+
- CHANGELOG.md
|
73
73
|
- CONTRIBUTORS
|
74
74
|
- Gemfile
|
75
75
|
- LICENSE
|