sensu-plugins-logstash 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzFjN2QzOWE5NTM3MDdjZmExNTI3MDIzY2NlZTNlMDJhZjFhNDI1Zg==
5
- data.tar.gz: !binary |-
6
- YWM2ODAwYmQ2ZTI1MzVmODQ2MGNkNWJmYzJkMTRkZmI5N2RiYmM2Ng==
2
+ SHA1:
3
+ metadata.gz: 9d86387fa4035cb642d49989af1c87eb85c7c193
4
+ data.tar.gz: 3873ed1924a389b4ca17a7975462cec1c7b2b21a
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZWU0OWRlNDI5ODRmZDE0OTYwNTdkNTBlODhhZTU1YjY2ZjdhZTgwN2RjNDZi
10
- NGI5MjgzZTgzYmExZGZmNGQ5YmQxNjA4ZDA2OGIwMjYwNzc4OGMzMGEwZmY0
11
- MDM2NTZmOTk5NmE1ZjZhMTQ2MGM1NTY0NzgwOWM2MmY5MzcyMjg=
12
- data.tar.gz: !binary |-
13
- M2Q3YTBkZmYzYjY0MDE1N2ZiMWI2YTMxMmEyNGE2MmIyMDU0NDZhOWE0OWI2
14
- YTI4ZGFjZWZlMDNhZDdhMjBiYjJiYWI5Mjg1MDJiMjZjOWFiYmEwZTJmYTNh
15
- NGQ0YWVkMjAxYTVmZjI4YTljOWY5ZTQzMTRiYWFhOTMwYzVjZjg=
6
+ metadata.gz: ea6463ee04eddf5f256a4022b3e72e092c641e199acccc743cba8647a7d33d3173fd604c3e66db4855297146cc4c8c9a293bd365f8fd976e109868d1241d36f2
7
+ data.tar.gz: 41421ec778a055e6239a23bc7668a8ded0c13745aa4318917e9fa8dff9d03d9c07cb1f24329e02d785b9f1d17c6f4445acb0a169bbcf697c0118d1a91fa28b3b
@@ -5,6 +5,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.1.1] - 2017-03-15
9
+ - changed json dependency from '= 1.8.3' to '< 2.0.0'
10
+ - handler-logstash.rb now merges value of `custom` handler definition
11
+ attribute into outgoing messages, if provided.
12
+
8
13
  ## [0.1.0] - 2016-08-10
9
14
  - changed sensu-plugin dependecy from `= 1.2.0` to `~> 1.2`
10
15
  - added TCP socket as an output option
data/README.md CHANGED
@@ -21,7 +21,13 @@
21
21
  "port": 6379,
22
22
  "list": "logstash",
23
23
  "type": "sensu-logstash",
24
- "output": "redis"
24
+ "output": "redis",
25
+ "custom": {
26
+ "thisFieldWillBeMergedIntoTheTopLevelOfOutgoingJSON": {
27
+ "metadata": "some metadata",
28
+ "moreMetadata": 42
29
+ }
30
+ }
25
31
  }
26
32
  }
27
33
  ```
@@ -81,6 +81,9 @@ class LogstashHandler < Sensu::Handler
81
81
  }
82
82
  logstash_msg[:type] = settings['logstash']['type'] if settings['logstash'].key?('type')
83
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
+
84
87
  case settings['logstash']['output']
85
88
  when 'redis'
86
89
  redis = Redis.new(host: settings['logstash']['server'], port: settings['logstash']['port'])
@@ -2,7 +2,7 @@ module SensuPluginsLogstash
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-logstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.8.2
19
+ version: 2.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.8.2
26
+ version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,146 +42,147 @@ dependencies:
42
42
  name: sensu-plugin
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: codeclimate-test-reporter
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.4'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.4'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: github-markup
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.3'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.10'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.10'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '10.0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '10.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: redcarpet
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: '3.2'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '3.2'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.40.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.40.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rspec
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
159
  version: '3.1'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '3.1'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: yard
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0.8'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0.8'
181
- description: ! "This plugin provides native logstash instrumentation\n for
182
- monitoring, including: a handler for sending events\n to
183
- logstash."
184
- email: <sensu-users@googlegroups.com>
181
+ description: |-
182
+ This plugin provides native logstash instrumentation
183
+ for monitoring, including: a handler for sending events
184
+ to logstash.
185
+ email: "<sensu-users@googlegroups.com>"
185
186
  executables:
186
187
  - handler-logstash.rb
187
188
  extensions: []
@@ -197,7 +198,7 @@ homepage: https://github.com/sensu-plugins/sensu-plugins-logstash
197
198
  licenses:
198
199
  - MIT
199
200
  metadata:
200
- maintainer: ! '@mattyjones'
201
+ maintainer: "@mattyjones"
201
202
  development_status: active
202
203
  production_status: unstable - testing recommended
203
204
  release_draft: 'false'
@@ -209,12 +210,12 @@ require_paths:
209
210
  - lib
210
211
  required_ruby_version: !ruby/object:Gem::Requirement
211
212
  requirements:
212
- - - ! '>='
213
+ - - ">="
213
214
  - !ruby/object:Gem::Version
214
215
  version: 1.9.3
215
216
  required_rubygems_version: !ruby/object:Gem::Requirement
216
217
  requirements:
217
- - - ! '>='
218
+ - - ">="
218
219
  - !ruby/object:Gem::Version
219
220
  version: '0'
220
221
  requirements: []