logstash-output-ganglia 1.0.0 → 2.0.0

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
  SHA1:
3
- metadata.gz: 27c5d48127cf4a9a7bac16e1f05d10577707dfcf
4
- data.tar.gz: 6683a500028f3c8be821077752e28dda0edcc4e2
3
+ metadata.gz: 7745914206301b9e7286b51f0facbc8a9bda36b3
4
+ data.tar.gz: c285f174af6f51824d0b8406e02d5e70100b5e8a
5
5
  SHA512:
6
- metadata.gz: 9e040b745adeeb6bc0df1bd908f249b416f6a58b199d330c8998394937719bce3d5916649d9ff1023cfb8c78989b6687eeb2b4fa720afea6ab49ee8d6d15667b
7
- data.tar.gz: 4706ffcfbf08c6b5039d20c7cdcb7389bdfbdaeae7423bd966d95cc60d88582fb10139d513945a53e4e21667c0a39f7544b00940e2607308ad06517c1384c9cb
6
+ metadata.gz: fb2e98da2558ec9dd5ed5fed8ae0f9acc8a75910601c9b5b2cd57eaa3fa3e3dda0ad4f0446fae0089f0a5c5e4f07ba93089f1d912ff57418d607876bb47369cf
7
+ data.tar.gz: 5592bb1286739d4f782582aeb4822880e6bbcfce32861da6d60352ce58ccf372be86286327a5ab77e5df6158c73b4c37cf1817f3242f9b1b0409b9bbcc37432d
data/CHANGELOG.md CHANGED
@@ -0,0 +1,2 @@
1
+ # 1.1.0
2
+ - add tests to the project
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Logstash Plugin
2
2
 
3
- This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
3
+ This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
4
 
5
5
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
6
 
7
7
  ## Documentation
8
8
 
9
- Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elasticsearch.org/guide/en/logstash/current/).
9
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
10
10
 
11
11
  - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
- - For more asciidoc formatting tips, see the excellent reference here https://github.com/elasticsearch/docs#asciidoc-guide
12
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
13
13
 
14
14
  ## Need Help?
15
15
 
@@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
83
83
 
84
84
  It is more important to the community that you are able to contribute.
85
85
 
86
- For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
86
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-ganglia'
4
- s.version = '1.0.0'
4
+ s.version = '2.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output allows you to pull metrics from your logs and ship them to ganglia's gmond."
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"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = `git ls-files`.split($\)+::Dir.glob('vendor/*')
14
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -20,9 +20,10 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
23
+ s.add_runtime_dependency "logstash-core", "~> 2.0.0.snapshot"
24
24
 
25
25
  s.add_runtime_dependency 'gmetric', ['0.1.3']
26
+ s.add_runtime_dependency 'logstash-codec-plain'
26
27
 
27
28
  s.add_development_dependency 'logstash-devutils'
28
29
  end
@@ -1 +1,32 @@
1
- require "logstash/devutils/rspec/spec_helper"
1
+ # encoding: utf-8
2
+ require_relative "../spec_helper"
3
+
4
+ describe LogStash::Outputs::Ganglia do
5
+
6
+ it "should register without errors" do
7
+ plugin = LogStash::Plugin.lookup("output", "ganglia").new("value" => "0", "metric" => "my.metric")
8
+ expect { plugin.register }.to_not raise_error
9
+ end
10
+
11
+ describe "#send" do
12
+
13
+ let(:value) { 12345 }
14
+ let(:metric) { "metric.mine" }
15
+ subject { LogStash::Outputs::Ganglia.new("value" => "%{value}", "metric" => "%{metric}") }
16
+
17
+ let(:properties) { { "message" => "This is a message!", "value" => value, "metric" => metric}}
18
+ let(:event) { LogStash::Event.new(properties) }
19
+
20
+
21
+ let(:host) { subject.host }
22
+ let(:port) { subject.port }
23
+ before(:each) do
24
+ subject.register
25
+ end
26
+
27
+ it "should send the message to ganglia" do
28
+ expect(Ganglia::GMetric).to receive(:send).with(host, port, hash_including(:name => metric, :value => value))
29
+ subject.receive(event)
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,3 @@
1
+ # encoding: utf-8
2
+ require "logstash/devutils/rspec/spec_helper"
3
+ require "logstash/outputs/ganglia"
metadata CHANGED
@@ -1,80 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-ganglia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.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: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ~>
17
+ - !ruby/object:Gem::Version
18
+ version: 2.0.0.snapshot
14
19
  name: logstash-core
20
+ prerelease: false
21
+ type: :runtime
15
22
  version_requirements: !ruby/object:Gem::Requirement
16
23
  requirements:
17
- - - '>='
24
+ - - ~>
18
25
  - !ruby/object:Gem::Version
19
- version: 1.4.0
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: 2.0.0
26
+ version: 2.0.0.snapshot
27
+ - !ruby/object:Gem::Dependency
23
28
  requirement: !ruby/object:Gem::Requirement
24
29
  requirements:
25
- - - '>='
26
- - !ruby/object:Gem::Version
27
- version: 1.4.0
28
- - - <
30
+ - - '='
29
31
  - !ruby/object:Gem::Version
30
- version: 2.0.0
32
+ version: 0.1.3
33
+ name: gmetric
31
34
  prerelease: false
32
35
  type: :runtime
33
- - !ruby/object:Gem::Dependency
34
- name: gmetric
35
36
  version_requirements: !ruby/object:Gem::Requirement
36
37
  requirements:
37
38
  - - '='
38
39
  - !ruby/object:Gem::Version
39
40
  version: 0.1.3
41
+ - !ruby/object:Gem::Dependency
40
42
  requirement: !ruby/object:Gem::Requirement
41
43
  requirements:
42
- - - '='
44
+ - - '>='
43
45
  - !ruby/object:Gem::Version
44
- version: 0.1.3
46
+ version: '0'
47
+ name: logstash-codec-plain
45
48
  prerelease: false
46
49
  type: :runtime
47
- - !ruby/object:Gem::Dependency
48
- name: logstash-devutils
49
50
  version_requirements: !ruby/object:Gem::Requirement
50
51
  requirements:
51
52
  - - '>='
52
53
  - !ruby/object:Gem::Version
53
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
54
56
  requirement: !ruby/object:Gem::Requirement
55
57
  requirements:
56
58
  - - '>='
57
59
  - !ruby/object:Gem::Version
58
60
  version: '0'
61
+ name: logstash-devutils
59
62
  prerelease: false
60
63
  type: :development
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
61
69
  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
62
70
  email: info@elastic.co
63
71
  executables: []
64
72
  extensions: []
65
73
  extra_rdoc_files: []
66
74
  files:
67
- - .gitignore
68
75
  - CHANGELOG.md
69
76
  - CONTRIBUTORS
70
77
  - Gemfile
71
78
  - LICENSE
72
79
  - NOTICE.TXT
73
80
  - README.md
74
- - Rakefile
75
81
  - lib/logstash/outputs/ganglia.rb
76
82
  - logstash-output-ganglia.gemspec
77
83
  - spec/outputs/ganglia_spec.rb
84
+ - spec/spec_helper.rb
78
85
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
79
86
  licenses:
80
87
  - Apache License (2.0)
@@ -97,9 +104,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
104
  version: '0'
98
105
  requirements: []
99
106
  rubyforge_project:
100
- rubygems_version: 2.2.2
107
+ rubygems_version: 2.4.8
101
108
  signing_key:
102
109
  specification_version: 4
103
110
  summary: This output allows you to pull metrics from your logs and ship them to ganglia's gmond.
104
111
  test_files:
105
112
  - spec/outputs/ganglia_spec.rb
113
+ - spec/spec_helper.rb
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- Gemfile.lock
3
- .bundle
4
- vendor
data/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- @files=[]
2
-
3
- task :default do
4
- system("rake -T")
5
- end
6
-
7
- require "logstash/devutils/rake"