logstash-output-datadog_metrics 2.0.4 → 3.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: 515371eb8fe834bfb5e25e2c7e324b1023632e85
4
- data.tar.gz: 3ae91135b69af62c535bcea8ff05dd43f83b44f7
3
+ metadata.gz: e7a0c5110fd5ca55d0975e4ef8dda085e5ae6d78
4
+ data.tar.gz: dfba3be7bc31453f548b7e6526a7e07b185e2c79
5
5
  SHA512:
6
- metadata.gz: 3e304eb1035ce1d6c7fcc67a1c53f7ec2e7e9632d0085b4b1166d86f2849daf391646201b4179837a8e6f9b7c8fc6b33a1a9e4a0a8892f7f5bdb9e71b1f1b965
7
- data.tar.gz: 261e1db092e487b335fcf73fc54e075e47daafc742132eb6d124519879ac14f774d57b5bfe63a2bd077d778cfdeef8031207e463a4b2facd0a372b2835d294a6
6
+ metadata.gz: a0af10bd52895b185c8d7162dd51ec3c913f4127ffdfc0d1a0ead47f805d2720d5ec2d68b475822a8f1a8d19934094470b5b73101729e5925c0ed10871ceae7a
7
+ data.tar.gz: 94baa3fc7ca45b43a8a665ad940385a033bea142fbf2dc41f949c18024aaee29c640b310f44d7ff3da9ecccab8d25740e659aec7c58baeb8e7ec7f809c123473
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
- # 2.0.4
1
+ ## 3.0.0
2
+ - Update to the new logstash event api
3
+ - update the travis file
4
+ - relax constraints on the logstash-core-plugin-api
5
+ - add logstash-codec-plain as a runtime dependency
6
+
7
+ ## 2.0.4
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
- # 2.0.3
9
+
10
+ ## 2.0.3
4
11
  - New dependency requirements for logstash-core for the 5.0 release
12
+
5
13
  ## 2.0.0
6
14
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
7
15
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Build
4
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-datadog_metrics-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-datadog_metrics-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-output-datadog_metrics.svg)](https://travis-ci.org/logstash-plugins/logstash-output-datadog_metrics)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
55
  ```
57
56
  - Install plugin
58
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
59
62
  bin/plugin install --no-verify
63
+
60
64
  ```
61
65
  - Run Logstash with your plugin
62
66
  ```sh
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
74
78
  ```
75
79
  - Install the plugin from the Logstash home
76
80
  ```sh
77
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
78
87
  ```
79
88
  - Start Logstash and proceed to test the plugin
80
89
 
@@ -66,7 +66,6 @@ module LogStash module Outputs class DatadogMetrics < LogStash::Outputs::Base
66
66
 
67
67
  # public
68
68
  def receive(event)
69
-
70
69
  return unless @metric_name && @metric_value && @metric_type
71
70
  return unless ["gauge", "counter"].include? event.sprintf(@metric_type)
72
71
 
@@ -80,7 +79,7 @@ module LogStash module Outputs class DatadogMetrics < LogStash::Outputs::Base
80
79
  if @dd_tags
81
80
  tagz = @dd_tags.collect {|x| event.sprintf(x) }
82
81
  else
83
- tagz = event["tags"]
82
+ tagz = event.get("tags")
84
83
  end
85
84
  dd_metrics['tags'] = tagz if tagz
86
85
 
@@ -1,10 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
-
3
2
  s.name = 'logstash-output-datadog_metrics'
4
- s.version = '2.0.4'
3
+ s.version = '3.0.0'
5
4
  s.licenses = ['Apache License (2.0)']
6
5
  s.summary = "This output lets you send metrics to DataDogHQ based on Logstash events."
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"
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,8 +19,8 @@ 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", "~> 1.0"
24
- s.add_runtime_dependency "logstash-codec-plain", '>= 1.0.0'
22
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
23
+ s.add_runtime_dependency "logstash-codec-plain"
25
24
 
26
25
  s.add_development_dependency 'logstash-devutils'
27
26
  end
metadata CHANGED
@@ -1,35 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-datadog_metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 3.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-03-24 00:00:00.000000000 Z
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: '1.0'
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
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '1.0'
29
+ version: '1.60'
30
+ - - "<="
31
+ - !ruby/object:Gem::Version
32
+ version: '2.99'
27
33
  - !ruby/object:Gem::Dependency
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
30
36
  - - ">="
31
37
  - !ruby/object:Gem::Version
32
- version: 1.0.0
38
+ version: '0'
33
39
  name: logstash-codec-plain
34
40
  prerelease: false
35
41
  type: :runtime
@@ -37,7 +43,7 @@ dependencies:
37
43
  requirements:
38
44
  - - ">="
39
45
  - !ruby/object:Gem::Version
40
- version: 1.0.0
46
+ version: '0'
41
47
  - !ruby/object:Gem::Dependency
42
48
  requirement: !ruby/object:Gem::Requirement
43
49
  requirements:
@@ -52,7 +58,7 @@ dependencies:
52
58
  - - ">="
53
59
  - !ruby/object:Gem::Version
54
60
  version: '0'
55
- 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
61
+ 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
56
62
  email: info@elastic.co
57
63
  executables: []
58
64
  extensions: []