Skip to content

Commit 8cc3b95

Browse files
authored
Merge pull request #4 from yaauie/input-pull-121
Absorb upstream docs changes from Input plugin
2 parents 20d6cf1 + dfa8ade commit 8cc3b95

File tree

4 files changed

+43
-35
lines changed

4 files changed

+43
-35
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 7.0.1
2+
- Improves Input Plugin documentation to better align with upstream guidance [#4](https://github.com/logstash-plugins/logstash-integration-rabbitmq/pull/4)
3+
14
## 7.0.0
25
- Initial release of the RabbitMQ Integration Plugin, which combines
36
previously-separate RabbitMQ plugins and shared dependencies into a single

docs/input-rabbitmq.asciidoc

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ input plugins.
116116
 
117117

118118
[id="plugins-{type}s-{plugin}-ack"]
119-
===== `ack`
119+
===== `ack`
120120

121121
* Value type is <<boolean,boolean>>
122122
* Default value is `true`
@@ -131,16 +131,21 @@ This will only send an ack back every `prefetch_count` messages.
131131
Working in batches provides a performance boost here.
132132

133133
[id="plugins-{type}s-{plugin}-arguments"]
134-
===== `arguments`
134+
===== `arguments`
135135

136136
* Value type is <<array,array>>
137137
* Default value is `{}`
138138

139-
Extra queue arguments as an array.
140-
To make a RabbitMQ queue mirrored, use: `{"x-ha-policy" => "all"}`
139+
Optional queue arguments as an array.
140+
141+
Relevant RabbitMQ doc guides:
142+
143+
* https://www.rabbitmq.com/queues.html#optional-arguments[Optional queue arguments]
144+
* https://www.rabbitmq.com/parameters.html#policies[Policies]
145+
* https://www.rabbitmq.com/quorum-queues.html[Quorum Queues]
141146

142147
[id="plugins-{type}s-{plugin}-auto_delete"]
143-
===== `auto_delete`
148+
===== `auto_delete`
144149

145150
* Value type is <<boolean,boolean>>
146151
* Default value is `false`
@@ -151,39 +156,40 @@ on the broker, queueing up messages until a consumer comes along to
151156
consume them.
152157

153158
[id="plugins-{type}s-{plugin}-automatic_recovery"]
154-
===== `automatic_recovery`
159+
===== `automatic_recovery`
155160

156161
* Value type is <<boolean,boolean>>
157162
* Default value is `true`
158163

159-
Set this to automatically recover from a broken connection. You almost certainly don't want to override this!!!
164+
Set this to https://www.rabbitmq.com/connections.html#automatic-recovery[automatically recover] from a broken connection.
165+
You almost certainly don't want to override this!
160166

161167
[id="plugins-{type}s-{plugin}-connect_retry_interval"]
162-
===== `connect_retry_interval`
168+
===== `connect_retry_interval`
163169

164170
* Value type is <<number,number>>
165171
* Default value is `1`
166172

167173
Time in seconds to wait before retrying a connection
168174

169175
[id="plugins-{type}s-{plugin}-connection_timeout"]
170-
===== `connection_timeout`
176+
===== `connection_timeout`
171177

172178
* Value type is <<number,number>>
173179
* There is no default value for this setting.
174180

175181
The default connection timeout in milliseconds. If not specified the timeout is infinite.
176182

177183
[id="plugins-{type}s-{plugin}-durable"]
178-
===== `durable`
184+
===== `durable`
179185

180186
* Value type is <<boolean,boolean>>
181187
* Default value is `false`
182188

183189
Is this queue durable? (aka; Should it survive a broker restart?)
184190

185191
[id="plugins-{type}s-{plugin}-exchange"]
186-
===== `exchange`
192+
===== `exchange`
187193

188194
* Value type is <<string,string>>
189195
* There is no default value for this setting.
@@ -192,7 +198,7 @@ The name of the exchange to bind the queue to. Specify `exchange_type`
192198
as well to declare the exchange if it does not exist
193199

194200
[id="plugins-{type}s-{plugin}-exchange_type"]
195-
===== `exchange_type`
201+
===== `exchange_type`
196202

197203
* Value type is <<string,string>>
198204
* There is no default value for this setting.
@@ -201,7 +207,7 @@ The type of the exchange to bind to. Specifying this will cause this plugin
201207
to declare the exchange if it does not exist.
202208

203209
[id="plugins-{type}s-{plugin}-exclusive"]
204-
===== `exclusive`
210+
===== `exclusive`
205211

206212
* Value type is <<boolean,boolean>>
207213
* Default value is `false`
@@ -211,15 +217,16 @@ that declared them and will be deleted when it is closed (e.g. due to a Logstash
211217
restart).
212218

213219
[id="plugins-{type}s-{plugin}-heartbeat"]
214-
===== `heartbeat`
220+
===== `heartbeat`
215221

216222
* Value type is <<number,number>>
217223
* There is no default value for this setting.
218224

219-
Heartbeat delay in seconds. If unspecified no heartbeats will be sent
225+
https://www.rabbitmq.com/heartbeats.html[Heartbeat timeout] in seconds.
226+
If unspecified then heartbeat timeout of 60 seconds will be used.
220227

221228
[id="plugins-{type}s-{plugin}-host"]
222-
===== `host`
229+
===== `host`
223230

224231
* This is a required setting.
225232
* Value type is <<string,string>>
@@ -238,7 +245,7 @@ recovery attempts of the hosts is chosen at random and connected to.
238245
Note that only one host connection is active at a time.
239246

240247
[id="plugins-{type}s-{plugin}-key"]
241-
===== `key`
248+
===== `key`
242249

243250
* Value type is <<string,string>>
244251
* Default value is `"logstash"`
@@ -250,15 +257,15 @@ This is only relevant for direct or topic exchanges.
250257
* Wildcards are not valid on direct exchanges.
251258

252259
[id="plugins-{type}s-{plugin}-metadata_enabled"]
253-
===== `metadata_enabled`
260+
===== `metadata_enabled`
254261

255262
* Value type is <<boolean,boolean>>
256263
* Default value is `false`
257264

258265
Enable the storage of message headers and properties in `@metadata`. This may impact performance
259266

260267
[id="plugins-{type}s-{plugin}-passive"]
261-
===== `passive`
268+
===== `passive`
262269

263270
* Value type is <<boolean,boolean>>
264271
* Default value is `false`
@@ -270,23 +277,23 @@ a queue that already exists, the queue options for this plugin
270277
(durable etc) must match those of the existing queue.
271278

272279
[id="plugins-{type}s-{plugin}-password"]
273-
===== `password`
280+
===== `password`
274281

275282
* Value type is <<password,password>>
276283
* Default value is `"guest"`
277284

278285
RabbitMQ password
279286

280287
[id="plugins-{type}s-{plugin}-port"]
281-
===== `port`
288+
===== `port`
282289

283290
* Value type is <<number,number>>
284291
* Default value is `5672`
285292

286293
RabbitMQ port to connect on
287294

288295
[id="plugins-{type}s-{plugin}-prefetch_count"]
289-
===== `prefetch_count`
296+
===== `prefetch_count`
290297

291298
* Value type is <<number,number>>
292299
* Default value is `256`
@@ -296,7 +303,7 @@ option, specifies the number of outstanding unacknowledged
296303
messages allowed.
297304

298305
[id="plugins-{type}s-{plugin}-queue"]
299-
===== `queue`
306+
===== `queue`
300307

301308
* Value type is <<string,string>>
302309
* Default value is `""`
@@ -321,7 +328,7 @@ left empty, a transient queue with an randomly chosen name
321328
will be created.
322329

323330
[id="plugins-{type}s-{plugin}-ssl"]
324-
===== `ssl`
331+
===== `ssl`
325332

326333
* Value type is <<boolean,boolean>>
327334
* There is no default value for this setting.
@@ -332,31 +339,31 @@ Specify ssl_certificate_path and ssl_certificate_password if you need
332339
certificate verification
333340

334341
[id="plugins-{type}s-{plugin}-ssl_certificate_password"]
335-
===== `ssl_certificate_password`
342+
===== `ssl_certificate_password`
336343

337344
* Value type is <<string,string>>
338345
* There is no default value for this setting.
339346

340347
Password for the encrypted PKCS12 (.p12) certificate file specified in ssl_certificate_path
341348

342349
[id="plugins-{type}s-{plugin}-ssl_certificate_path"]
343-
===== `ssl_certificate_path`
350+
===== `ssl_certificate_path`
344351

345352
* Value type is <<path,path>>
346353
* There is no default value for this setting.
347354

348355
Path to an SSL certificate in PKCS12 (.p12) format used for verifying the remote host
349356

350357
[id="plugins-{type}s-{plugin}-ssl_version"]
351-
===== `ssl_version`
358+
===== `ssl_version`
352359

353360
* Value type is <<string,string>>
354361
* Default value is `"TLSv1.2"`
355362

356363
Version of the SSL protocol to use.
357364

358365
[id="plugins-{type}s-{plugin}-subscription_retry_interval_seconds"]
359-
===== `subscription_retry_interval_seconds`
366+
===== `subscription_retry_interval_seconds`
360367

361368
* This is a required setting.
362369
* Value type is <<number,number>>
@@ -366,21 +373,21 @@ Amount of time in seconds to wait after a failed subscription request
366373
before retrying. Subscribes can fail if the server goes away and then comes back.
367374

368375
[id="plugins-{type}s-{plugin}-threads"]
369-
===== `threads`
376+
===== `threads`
370377

371378
* Value type is <<number,number>>
372379
* Default value is `1`
373380

374381
[id="plugins-{type}s-{plugin}-user"]
375-
===== `user`
382+
===== `user`
376383

377384
* Value type is <<string,string>>
378385
* Default value is `"guest"`
379386

380387
RabbitMQ username
381388

382389
[id="plugins-{type}s-{plugin}-vhost"]
383-
===== `vhost`
390+
===== `vhost`
384391

385392
* Value type is <<string,string>>
386393
* Default value is `"/"`
@@ -395,4 +402,4 @@ slash.
395402
[id="plugins-{type}s-{plugin}-common-options"]
396403
include::{include_path}/{type}.asciidoc[]
397404

398-
:default_codec!:
405+
:default_codec!:

lib/logstash/inputs/rabbitmq.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ class RabbitMQ < LogStash::Inputs::Threadable
121121
# restart).
122122
config :exclusive, :validate => :boolean, :default => false
123123

124-
# Extra queue arguments as an array.
125-
# To make a RabbitMQ queue mirrored, use: `{"x-ha-policy" => "all"}`
126124
config :arguments, :validate => :array, :default => {}
127125

128126
# Prefetch count. If acknowledgements are enabled with the `ack`

logstash-integration-rabbitmq.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'logstash-integration-rabbitmq'
3-
s.version = '7.0.0'
3+
s.version = '7.0.1'
44
s.licenses = ['Apache License (2.0)']
55
s.summary = "Integration with RabbitMQ - input and output plugins"
66
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline "+

0 commit comments

Comments
 (0)