sensu-plugins-logstash-boutetnico 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4ec4a236b26fc821cc492616256756765a0ee078
4
+ data.tar.gz: d5fa06a35f923ccb2406acbe1d6b6526fed1188f
5
+ SHA512:
6
+ metadata.gz: 572655fbcee661763466c3ef0f506ec935e54c8e67f0c7da0bf328bdf0aa1f69c7b46280c27ba63456524b4948ecd7228c6ab91c958d0c715f65308b26e0af32
7
+ data.tar.gz: 7e7535594f7a3488a31fda4cbe066f8ce786fa5d9a04237c5cff6d2f7460c458727403d45398dddf8948887739e372161ff0336c1156b7324c9c523546b474e0
data/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ Can be found at [https://github.com/boutetnico/sensu-plugins-logstash/releases](https://github.com/boutetnico/sensu-plugins-logstash/releases).
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Sensu-Plugins
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,56 @@
1
+ ## Sensu-Plugins-logstash
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/sensu-plugins-logstash-boutetnico.svg)](https://badge.fury.io/rb/sensu-plugins-logstash-boutetnico.svg)
4
+ [![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/boutetnico/sensu-plugins-logstash)
5
+
6
+ ## This is an unofficial fork
7
+
8
+ This fork is automatically tested, built and published to [RubyGems](https://rubygems.org/gems/sensu-plugins-logstash-boutetnico/) and [Bonsai](https://bonsai.sensu.io/assets/boutetnico/sensu-plugins-logstash).
9
+
10
+ ## Functionality
11
+
12
+ ## Files
13
+ * bin/handler-logstash
14
+
15
+ ## Usage
16
+
17
+ **handler-logstash**
18
+ ```
19
+ {
20
+ "logstash": {
21
+ "endpoint": [
22
+ {
23
+ "address": "host1.example.tld",
24
+ "port": 5000,
25
+ "output": "redis"
26
+ },
27
+ {
28
+ "address": "logstash-host1.example.tld",
29
+ "port": 5001,
30
+ "output": "udp"
31
+ },
32
+ {
33
+ "address": "logstash-host2.example.tld",
34
+ "port": 5002,
35
+ "output": "tcp"
36
+ }
37
+ ],
38
+ "list": "logstash",
39
+ "type": "sensu-logstash",
40
+ "custom": {
41
+ "thisFieldWillBeMergedIntoTheTopLevelOfOutgoingJSON": {
42
+ "metadata": "some metadata",
43
+ "moreMetadata": 42
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ Supported output types: `redis`, `tcp`, `udp`
51
+
52
+ ## Installation
53
+
54
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
55
+
56
+ ## Notes
@@ -0,0 +1,103 @@
1
+ #! /usr/bin/env ruby
2
+ #
3
+ # handler-logstash
4
+ #
5
+ # DESCRIPTION:
6
+ # Designed to take sensu events, transform them into logstah JSON events
7
+ # and ship them to a redis server for logstash to index. This also
8
+ # generates a tag with either 'sensu-ALERT' or 'sensu-RECOVERY' so that
9
+ # searching inside of logstash can be a little easier.
10
+ #
11
+ # OUTPUT:
12
+ # plain text
13
+ #
14
+ # PLATFORMS:
15
+ # Linux
16
+ #
17
+ # DEPENDENCIES:
18
+ # gem: sensu-plugin
19
+ # gem: diplomat
20
+ #
21
+ # USAGE:
22
+ #
23
+ # NOTES:
24
+ # Heavily inspried (er, copied from) the GELF Handler written by
25
+ # Joe Miller.
26
+ #
27
+ # LICENSE:
28
+ # Zach Dunn @SillySophist http://github.com/zadunn
29
+ # Released under the same terms as Sensu (the MIT license); see LICENSE
30
+ # for details.
31
+ #
32
+
33
+ require 'sensu-handler'
34
+ require 'redis'
35
+ require 'json'
36
+ require 'socket'
37
+ require 'time'
38
+
39
+ #
40
+ # Logstash Handler
41
+ #
42
+ class LogstashHandler < Sensu::Handler
43
+ def event_name
44
+ @event['client']['name'] + '/' + @event['check']['name']
45
+ end
46
+
47
+ def action_to_string
48
+ @event['action'].eql?('resolve') ? 'RESOLVE' : 'ALERT'
49
+ end
50
+
51
+ def event_status
52
+ case @event['check']['status']
53
+ when 0
54
+ 'OK'
55
+ when 1
56
+ 'WARNING'
57
+ when 2
58
+ 'CRITICAL'
59
+ else
60
+ 'unknown'
61
+ end
62
+ end
63
+
64
+ def handle
65
+ time = Time.now.utc.iso8601
66
+ logstash_msg = {
67
+ :@timestamp => time,
68
+ :@version => 1,
69
+ :source => ::Socket.gethostname,
70
+ :tags => ["sensu-#{action_to_string}"],
71
+ :message => @event['check']['output'],
72
+ :host => @event['client']['name'],
73
+ :timestamp => @event['check']['issued'],
74
+ :address => @event['client']['address'],
75
+ :check_name => @event['check']['name'],
76
+ :command => @event['check']['command'],
77
+ :status => event_status,
78
+ :flapping => @event['check']['flapping'],
79
+ :occurrences => @event['occurrences'],
80
+ :action => @event['action']
81
+ }
82
+ logstash_msg[:type] = settings['logstash']['type'] if settings['logstash'].key?('type')
83
+
84
+ # merge into the outgoing logstash message (at the top level) any JSON config defined under settings['logstash']['custom']
85
+ logstash_msg = logstash_msg.merge(settings['logstash']['custom']) if settings['logstash'].key?('custom') && !settings['logstash']['custom'].empty?
86
+
87
+ settings['logstash']['endpoint'].each do |endpoint|
88
+ case endpoint['output']
89
+ when 'redis'
90
+ redis = Redis.new(host: endpoint['address'], port: endpoint['port'])
91
+ redis.lpush(settings['logstash']['list'], logstash_msg.to_json)
92
+ when 'udp'
93
+ socket = UDPSocket.new
94
+ socket.send(JSON.generate(logstash_msg), 0, endpoint['address'], endpoint['port'])
95
+ socket.close
96
+ when 'tcp'
97
+ socket = TCPSocket.new(endpoint['address'], endpoint['port'])
98
+ socket.puts(JSON.generate(logstash_msg))
99
+ socket.close
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,182 @@
1
+ #! /usr/bin/env ruby
2
+ #
3
+ # metrics-logstash-node
4
+ #
5
+ # DESCRIPTION:
6
+ # This plugin uses the Logstash node info API to collect metrics, producing a
7
+ # JSON document which is outputted to STDOUT. An exit status of 0 indicates
8
+ # the plugin has successfully collected and produced.
9
+ #
10
+ # OUTPUT:
11
+ # metric data
12
+ #
13
+ # PLATFORMS:
14
+ # Linux
15
+ #
16
+ # DEPENDENCIES:
17
+ # gem: sensu-plugin
18
+ # gem: rest-client
19
+ #
20
+ # USAGE:
21
+ # #YELLOW
22
+ #
23
+ # NOTES:
24
+ #
25
+ # LICENSE:
26
+ # Copyright 2011 Sonian, Inc <chefs@sonian.net>
27
+ # Copyright 2018 Philipp Hellmich <phil@hellmi.de>
28
+ # Released under the same terms as Sensu (the MIT license); see LICENSE
29
+ # for details.
30
+ #
31
+
32
+ require 'sensu-plugin/metric/cli'
33
+ require 'rest-client'
34
+ require 'json'
35
+ require 'base64'
36
+
37
+ #
38
+ # Logstash Node Metrics
39
+ #
40
+ class LogstashNodeMetrics < Sensu::Plugin::Metric::CLI::Graphite
41
+ option :scheme,
42
+ description: 'Metric naming scheme, text to prepend to metrics',
43
+ short: '-s SCHEME',
44
+ long: '--scheme SCHEME',
45
+ default: "#{Socket.gethostname}.logstash"
46
+
47
+ option :host,
48
+ description: 'Logstash server host',
49
+ short: '-h HOST',
50
+ long: '--host HOST',
51
+ default: 'localhost'
52
+
53
+ option :port,
54
+ description: 'Logstash monitoring port',
55
+ short: '-p PORT',
56
+ long: '--port PORT',
57
+ proc: proc(&:to_i),
58
+ default: 9600
59
+
60
+ option :user,
61
+ description: 'Logstash user',
62
+ short: '-u USER',
63
+ long: '--user USER'
64
+
65
+ option :password,
66
+ description: 'Logstash password',
67
+ short: '-P PASS',
68
+ long: '--password PASS'
69
+
70
+ option :https,
71
+ description: 'Enables HTTPS',
72
+ short: '-e',
73
+ long: '--https'
74
+
75
+ def get_logstash_resource(resource)
76
+ headers = {}
77
+ if config[:user] && config[:password]
78
+ auth = 'Basic ' + Base64.encode64("#{config[:user]}:#{config[:password]}").chomp
79
+ headers = { 'Authorization' => auth }
80
+ end
81
+
82
+ protocol = if config[:https]
83
+ 'https'
84
+ else
85
+ 'http'
86
+ end
87
+
88
+ r = RestClient::Resource.new("#{protocol}://#{config[:host]}:#{config[:port]}#{resource}", timeout: config[:timeout], headers: headers)
89
+ ::JSON.parse(r.get)
90
+ rescue Errno::ECONNREFUSED
91
+ warning 'Connection refused'
92
+ rescue RestClient::RequestTimeout
93
+ warning 'Connection timed out'
94
+ end
95
+
96
+ def run # rubocop:disable Metrics/AbcSize
97
+ stats = get_logstash_resource('/_node/stats')
98
+
99
+ timestamp = Time.now.to_i
100
+ node = stats
101
+
102
+ metrics = {}
103
+ metrics['jvm.threads.count'] = node['jvm']['threads']['count']
104
+ metrics['jvm.mem.heap_used_in_bytes'] = node['jvm']['mem']['heap_used_in_bytes']
105
+ metrics['jvm.mem.heap_used_percent'] = node['jvm']['mem']['heap_used_percent']
106
+ metrics['jvm.mem.non_heap_used_in_bytes'] = node['jvm']['mem']['non_heap_used_in_bytes']
107
+ metrics['jvm.gc.collectors.old.collection_time_in_millis'] = node['jvm']['gc']['collectors']['old']['collection_time_in_millis']
108
+ metrics['jvm.gc.collectors.young.collection_time_in_millis'] = node['jvm']['gc']['collectors']['young']['collection_time_in_millis']
109
+ metrics['jvm.gc.collectors.old.collection_count'] = node['jvm']['gc']['collectors']['old']['collection_count']
110
+ metrics['jvm.gc.collectors.young.collection_count'] = node['jvm']['gc']['collectors']['young']['collection_count']
111
+
112
+ metrics['process.open_file_descriptors'] = node['process']['open_file_descriptors']
113
+ metrics['process.peak_open_file_descriptors'] = node['process']['peak_open_file_descriptors']
114
+ metrics['process.max_file_descriptors'] = node['process']['max_file_descriptors']
115
+
116
+ # logstash < 6.0
117
+ if node.key?('pipeline') && node['pipeline'].key?('events')
118
+ node['pipeline']['events'].each do |key, value|
119
+ metrics["pipeline.events.#{key}"] = value
120
+ end
121
+
122
+ node['pipeline']['plugins']['inputs'].each do |item|
123
+ item['events'] = {} unless item.key?('events')
124
+ metrics["pipeline.plugins.inputs.#{item['name']}.#{item['id']}.events.in"] = item['events']['in'].to_i || 0
125
+ metrics["pipeline.plugins.inputs.#{item['name']}.#{item['id']}.events.out"] = item['events']['out'].to_i || 0
126
+ metrics["pipeline.plugins.inputs.#{item['name']}.#{item['id']}.events.queue_push_duration_in_millis"] = \
127
+ item['events']['queue_push_duration_in_millis'].to_i || 0
128
+ end
129
+
130
+ node['pipeline']['plugins']['filters'].each do |item|
131
+ metrics["pipeline.plugins.filters.#{item['name']}.#{item['id']}.events.out"] = item['events']['out'].to_i || 0
132
+ metrics["pipeline.plugins.filters.#{item['name']}.#{item['id']}.events.duration_in_millis"] = item['events']['duration_in_millis'].to_i || 0
133
+ metrics["pipeline.plugins.filters.#{item['name']}.#{item['id']}.matches"] = item['matches'].to_i if item.key?('matches')
134
+ end
135
+
136
+ node['pipeline']['plugins']['outputs'].each do |item|
137
+ item['events'] = {} unless item.key?('events')
138
+ metrics["pipeline.plugins.outputs.#{item['name']}.#{item['id']}.events.in"] = item['events']['in'].to_i || 0
139
+ metrics["pipeline.plugins.outputs.#{item['name']}.#{item['id']}.events.out"] = item['events']['out'].to_i || 0
140
+ metrics["pipeline.plugins.outputs.#{item['name']}.#{item['id']}.events.duration_in_millis"] = item['events']['duration_in_millis'].to_i || 0
141
+ end
142
+ # logstash >= 6.0
143
+ elsif node.key?('pipelines')
144
+ node['pipelines'].each_key do |pipeline|
145
+ if node['pipelines'][pipeline]['events'].nil? || node['pipelines'][pipeline]['events'] == 'null'
146
+ # Skip
147
+ else
148
+ node['pipelines'][pipeline]['events'].each do |key, value|
149
+ metrics["pipelines.#{pipeline}.events.#{key}"] = value
150
+ end
151
+ end
152
+
153
+ node['pipelines'][pipeline]['plugins']['inputs'].each do |item|
154
+ item['events'] = {} unless item.key?('events')
155
+ metrics["pipelines.#{pipeline}.plugins.inputs.#{item['name']}.#{item['id']}.events.in"] = item['events']['in'].to_i || 0
156
+ metrics["pipelines.#{pipeline}.plugins.inputs.#{item['name']}.#{item['id']}.events.out"] = item['events']['out'].to_i || 0
157
+ metrics["pipelines.#{pipeline}.plugins.inputs.#{item['name']}.#{item['id']}.events.queue_push_duration_in_millis"] = item['events']['queue_push_duration_in_millis'].to_i || 0 # rubocop:disable Metrics/LineLength
158
+ end
159
+
160
+ node['pipelines'][pipeline]['plugins']['filters'].each do |item|
161
+ item['events'] = {} unless item.key?('events')
162
+ metrics["pipelines.#{pipeline}.plugins.filters.#{item['name']}.#{item['id']}.events.in"] = item['events']['in'].to_i || 0
163
+ metrics["pipelines.#{pipeline}.plugins.filters.#{item['name']}.#{item['id']}.events.out"] = item['events']['out'].to_i || 0
164
+ metrics["pipelines.#{pipeline}.plugins.filters.#{item['name']}.#{item['id']}.events.duration_in_millis"] = item['events']['duration_in_millis'].to_i || 0 # rubocop:disable Metrics/LineLength
165
+ metrics["pipelines.#{pipeline}.plugins.filters.#{item['name']}.#{item['id']}.matches"] = item['matches'].to_i if item.key?('matches')
166
+ end
167
+
168
+ node['pipelines'][pipeline]['plugins']['outputs'].each do |item|
169
+ item['events'] = {} unless item.key?('events')
170
+ metrics["pipelines.#{pipeline}.plugins.outputs.#{item['name']}.#{item['id']}.events.in"] = item['events']['in'].to_i || 0
171
+ metrics["pipelines.#{pipeline}.plugins.outputs.#{item['name']}.#{item['id']}.events.out"] = item['events']['out'].to_i || 0
172
+ metrics["pipelines.#{pipeline}.plugins.outputs.#{item['name']}.#{item['id']}.events.duration_in_millis"] = item['events']['duration_in_millis'].to_i || 0 # rubocop:disable Metrics/LineLength
173
+ end
174
+ end
175
+ end
176
+
177
+ metrics.each do |k, v|
178
+ output([config[:scheme], k].join('.'), v, timestamp)
179
+ end
180
+ ok
181
+ end
182
+ end
@@ -0,0 +1,9 @@
1
+ module SensuPluginsLogstash
2
+ module Version
3
+ MAJOR = 1
4
+ MINOR = 0
5
+ PATCH = 1
6
+
7
+ VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
+ end
9
+ end
@@ -0,0 +1 @@
1
+ require 'sensu-plugins-logstash/version'
metadata ADDED
@@ -0,0 +1,257 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sensu-plugins-logstash-boutetnico
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Sensu Plugins and contributors
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-08-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.3.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.3.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: redis
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.2.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.2.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: rest-client
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.1.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.1.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: sensu-plugin
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: codeclimate-test-reporter
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: github-markup
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.13'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.13'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '13.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '13.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: redcarpet
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.5'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.5'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rspec
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '3.9'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.9'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.85.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.85.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: webmock
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 3.8.3
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: 3.8.3
195
+ - !ruby/object:Gem::Dependency
196
+ name: yard
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 0.9.25
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 0.9.25
209
+ description: |-
210
+ This plugin provides native logstash instrumentation
211
+ for monitoring, including: a handler for sending events
212
+ to logstash.
213
+ email: "<sensu-users@googlegroups.com>"
214
+ executables:
215
+ - metrics-logstash-node.rb
216
+ - handler-logstash.rb
217
+ extensions: []
218
+ extra_rdoc_files: []
219
+ files:
220
+ - CHANGELOG.md
221
+ - LICENSE
222
+ - README.md
223
+ - bin/handler-logstash.rb
224
+ - bin/metrics-logstash-node.rb
225
+ - lib/sensu-plugins-logstash.rb
226
+ - lib/sensu-plugins-logstash/version.rb
227
+ homepage: https://github.com/boutetnico/sensu-plugins-logstash
228
+ licenses:
229
+ - MIT
230
+ metadata:
231
+ maintainer: "@mattyjones"
232
+ development_status: active
233
+ production_status: unstable - testing recommended
234
+ release_draft: 'false'
235
+ release_prerelease: 'false'
236
+ post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
237
+ in /etc/default/sensu
238
+ rdoc_options: []
239
+ require_paths:
240
+ - lib
241
+ required_ruby_version: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - ">="
244
+ - !ruby/object:Gem::Version
245
+ version: 2.4.0
246
+ required_rubygems_version: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ requirements: []
252
+ rubyforge_project:
253
+ rubygems_version: 2.6.14.4
254
+ signing_key:
255
+ specification_version: 4
256
+ summary: Sensu plugins for working with logstash
257
+ test_files: []