logstash-output-librato 0.1.5 → 2.0.1

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: 3c00d206bbcd1e11c0e5725987cc9c2b8db1bcd5
4
- data.tar.gz: 751886a9571cc79a1419f7c4bc7dcd42bff81528
3
+ metadata.gz: 99fc63c0d4224a586cf6e3ab2b97408b3b8fbd90
4
+ data.tar.gz: 9b744cdf8f1bafb9dce96fd016c886208954f13e
5
5
  SHA512:
6
- metadata.gz: 65d43304ea0e8118af67be293bc39c36f900d0de10a9efdfafb2110a5200173618011e962d5c7fe6248ab71a4de67535548b8243eddc8cfd4146e01b302bfb44
7
- data.tar.gz: e99be0e12c43fdd6171412719c57b0e75e348a291172e59f8097586b193c237e0a2d44443efe1a2ce5b9b23509c280f925646043d07089314aa691792c111600
6
+ metadata.gz: 6f373ef9cac26cca2661680c2b15b28c5167ba8576a6735221bbc824725950883e26193a93efc44cfea735816f8ca7615a9291a76160dc58d7a16e7c87767df1
7
+ data.tar.gz: b99efb13e27bd086cd33a12b418f0fdc6bc99c14eca3772b9f339fea497e57f5c3fbd46d898feb589691f1ed1aa9a18abe3699987b8db1f8b86fa179a9c6163e
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## 2.0.0
2
+ - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
+ instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
4
+ - Dependency on logstash-core update to 2.0
5
+
data/NOTICE.TXT ADDED
@@ -0,0 +1,5 @@
1
+ Elasticsearch
2
+ Copyright 2012-2015 Elasticsearch
3
+
4
+ This product includes software developed by The Apache Software
5
+ Foundation (http://www.apache.org/).
data/README.md CHANGED
@@ -1,19 +1,19 @@
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
 
16
- Need help? Try #logstash on freenode IRC or the logstash-users@googlegroups.com mailing list.
16
+ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
17
17
 
18
18
  ## Developing
19
19
 
@@ -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.
@@ -9,7 +9,6 @@ class LogStash::Outputs::Librato < LogStash::Outputs::Base
9
9
  # Librato based on Logstash events
10
10
  #
11
11
  # This is VERY experimental and inefficient right now.
12
-
13
12
  config_name "librato"
14
13
 
15
14
  # Your Librato account
@@ -24,10 +23,19 @@ class LogStash::Outputs::Librato < LogStash::Outputs::Base
24
23
  #
25
24
  # Example:
26
25
  # [source,ruby]
27
- # ["value", "%{bytes_recieved}", "source", "%{host}", "name", "apache_bytes"]
26
+ # {
27
+ # "value" => "%{bytes_received}"
28
+ # "source" => "%{host}"
29
+ # "name" => "apache_bytes"
30
+ # }
28
31
  # Additionally, you can override the `measure_time` for the event. Must be a unix timestamp:
29
32
  # [source,ruby]
30
- # ["value", "%{bytes_recieved}", "source", "%{host}", "name", "apache_bytes","measure_time", "%{my_unixtime_field}]
33
+ # {
34
+ # "value" => "%{bytes_received}"
35
+ # "source" => "%{host}"
36
+ # "name" => "apache_bytes"
37
+ # "measure_time" => "%{my_unixtime_field}
38
+ # }
31
39
  # Default is to use the event's timestamp
32
40
  config :gauge, :validate => :hash, :default => {}
33
41
 
@@ -36,10 +44,20 @@ class LogStash::Outputs::Librato < LogStash::Outputs::Base
36
44
  #
37
45
  # Example:
38
46
  # [source,ruby]
39
- # ["value", "1", "source", "%{host}", "name", "messages_received"]
47
+ # {
48
+ # "value" => "1"
49
+ # "source" => "%{host}"
50
+ # "name" => "messages_received"
51
+ # }
52
+ #
40
53
  # Additionally, you can override the `measure_time` for the event. Must be a unix timestamp:
41
54
  # [source,ruby]
42
- # ["value", "1", "source", "%{host}", "name", "messages_received", "measure_time", "%{my_unixtime_field}"]
55
+ # {
56
+ # "value" => "1"
57
+ # "source" => "%{host}"
58
+ # "name" => "messages_received"
59
+ # "measure_time" => "%{my_unixtime_field}"
60
+ # }
43
61
  # Default is to use the event's timestamp
44
62
  config :counter, :validate => :hash, :default => {}
45
63
 
@@ -52,10 +70,17 @@ class LogStash::Outputs::Librato < LogStash::Outputs::Base
52
70
  #
53
71
  # Example:
54
72
  # [source,ruby]
55
- # ["title":"Logstash event on %{host}", "name":"logstash_stream"]
73
+ # {
74
+ # "title" => "Logstash event on %{host}"
75
+ # "name" => "logstash_stream"
76
+ # }
56
77
  # or
57
78
  # [source,ruby]
58
- # ["title":"Logstash event", "description":"%{message}", "name":"logstash_stream"]
79
+ # {
80
+ # "title" => "Logstash event"
81
+ # "description" => "%{message}"
82
+ # "name" => "logstash_stream"
83
+ # }
59
84
  config :annotation, :validate => :hash, :default => {}
60
85
 
61
86
  # Batch size
@@ -79,7 +104,7 @@ class LogStash::Outputs::Librato < LogStash::Outputs::Base
79
104
  def receive(event)
80
105
  # TODO (lusis)
81
106
  # batch and flush
82
- return unless output?(event)
107
+
83
108
 
84
109
  metrics_event = Hash.new
85
110
  unless @gauge.size == 0
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-librato'
4
- s.version = '0.1.5'
4
+ s.version = '2.0.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output lets you send metrics, annotations and alerts to Librato based on Logstash events"
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,7 +20,7 @@ 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", "< 3.0.0"
24
24
 
25
25
  s.add_development_dependency 'logstash-devutils'
26
26
  end
metadata CHANGED
@@ -1,24 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-librato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-10-08 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
17
  - !ruby/object:Gem::Version
18
- version: 1.4.0
18
+ version: 2.0.0.snapshot
19
19
  - - <
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.0
21
+ version: 3.0.0
22
22
  name: logstash-core
23
23
  prerelease: false
24
24
  type: :runtime
@@ -26,10 +26,10 @@ dependencies:
26
26
  requirements:
27
27
  - - '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 1.4.0
29
+ version: 2.0.0.snapshot
30
30
  - - <
31
31
  - !ruby/object:Gem::Version
32
- version: 2.0.0
32
+ version: 3.0.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
@@ -50,12 +50,12 @@ executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
- - .gitignore
53
+ - CHANGELOG.md
54
54
  - CONTRIBUTORS
55
55
  - Gemfile
56
56
  - LICENSE
57
+ - NOTICE.TXT
57
58
  - README.md
58
- - Rakefile
59
59
  - lib/logstash/outputs/librato.rb
60
60
  - logstash-output-librato.gemspec
61
61
  - spec/outputs/librato_spec.rb
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.1.9
84
+ rubygems_version: 2.4.8
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: This output lets you send metrics, annotations and alerts to Librato based on Logstash events
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"