logstash-input-jmx 2.0.4 → 3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d22ac2c5af41f0d5ecd372a52429ac8e33766b57
4
- data.tar.gz: 2a277bb8dd8082ce42ee6061a0ff5d42e6879268
3
+ metadata.gz: 73a2b9065138ca4a860e457cd95b1453adeb4286
4
+ data.tar.gz: dcdcc6d474f4696b2fdda87cf1e96e3bf7e24c67
5
5
  SHA512:
6
- metadata.gz: 953184aa7c29808bfe74f09131d26efdfff1cab59ee3557d803dd07def75099093d6c5fd57c9ccf742036588fa103e89163fbba4c5a665206117f62b3bbef595
7
- data.tar.gz: 2b41d9597e36bb894985b4db81298746b65d62b897e6f00932148f0480bff559dd2b1da955b89e124da6a407d9a260786418897fdec37dad91267f4d027199b3
6
+ metadata.gz: 89c90c648162fc7f26c2c078dd2f17a7cb79c046281544e8b5c0925b49140f842f4e826b26e44e838107a3d929bd39ea9cc4955e76844cf370f1ff7cfb3a4e58
7
+ data.tar.gz: 8bac9b78f06b0b5860e8dde0984f76b5309713848609355b4e6f84ec2a3eff0e31728f807453297e3bade6c3fec37597ea0ea78d37cd642cda4ed1ebabde8912
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 3.0.0
2
+ - Breaking: depend on logstash-core-plugin-api between 1.60 and 2.99
3
+
1
4
  # 2.0.4
2
5
  - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
6
  # 2.0.3
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%20Inputs/job/logstash-plugin-input-jmx-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-jmx-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-input-jmx.svg)](https://travis-ci.org/logstash-plugins/logstash-input-jmx)
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
 
@@ -172,24 +172,24 @@ class LogStash::Inputs::Jmx < LogStash::Inputs::Base
172
172
  def send_event_to_queue(queue,host,metric_path,metric_value)
173
173
  @logger.debug('Send event to queue to be processed by filters/outputs')
174
174
  event = LogStash::Event.new
175
- event['host'] = host
176
- event['path'] = @path
177
- event['type'] = @type
175
+ event('host', host)
176
+ event('path', @path)
177
+ event.set('type', @type)
178
178
  number_type = [Fixnum, Bignum, Float]
179
179
  boolean_type = [TrueClass, FalseClass]
180
180
  metric_path_substituted = metric_path.gsub(' ','_').gsub('"','')
181
181
  if number_type.include?(metric_value.class)
182
182
  @logger.debug("The value #{metric_value} is of type number: #{metric_value.class}")
183
- event['metric_path'] = metric_path_substituted
184
- event['metric_value_number'] = metric_value
183
+ event.set('metric_path', metric_path_substituted)
184
+ event.set('metric_value_number', metric_value)
185
185
  elsif boolean_type.include?(metric_value.class)
186
186
  @logger.debug("The value #{metric_value} is of type boolean: #{metric_value.class}")
187
- event['metric_path'] = metric_path_substituted+'_bool'
188
- event['metric_value_number'] = metric_value ? 1 : 0
187
+ event.set('metric_path', metric_path_substituted+'_bool')
188
+ event.set('metric_value_number', metric_value ? 1 : 0)
189
189
  else
190
190
  @logger.debug("The value #{metric_value} is not of type number: #{metric_value.class}")
191
- event['metric_path'] = metric_path_substituted
192
- event['metric_value_string'] = metric_value.to_s
191
+ event.set('metric_path', metric_path_substituted)
192
+ event.set('metric_value_string', metric_value.to_s)
193
193
  end
194
194
  decorate(event)
195
195
  queue << event
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-jmx'
4
- s.version = '2.0.4'
4
+ s.version = '3.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Retrieve metrics from jmx."
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"
7
+ 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
8
  s.authors = ["Elastic"]
9
9
  s.email = 'info@elastic.co'
10
10
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
24
 
25
25
  s.add_runtime_dependency 'jmx4r'
26
26
 
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-jmx
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-11-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
+ - !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
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.60'
30
+ - - "<="
25
31
  - !ruby/object:Gem::Version
26
- version: '1.0'
32
+ version: '2.99'
27
33
  - !ruby/object:Gem::Dependency
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
@@ -66,7 +72,7 @@ dependencies:
66
72
  - - ">="
67
73
  - !ruby/object:Gem::Version
68
74
  version: '0'
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
75
+ 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
70
76
  email: info@elastic.co
71
77
  executables: []
72
78
  extensions: []