fluent-plugin-rabbitmq 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 +4 -4
- data/README.md +7 -2
- data/fluent-plugin-rabbitmq.gemspec +5 -3
- data/lib/fluent/plugin/in_rabbitmq.rb +3 -0
- data/lib/fluent/plugin/out_rabbitmq.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fa22768ed1823cd072d1e226c9f6ea44cd3b0b2396e90066edcc76ae552124f
|
4
|
+
data.tar.gz: bf85c005c06eef232a104e561ef5cd6e90c35618099f957c4c401adbf226d899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cae2d54e168c4f6158f8d0c32e114a1b136d5e596ed8ec64afc2cef1767c8ea6a7e6958a57b15a0f84b5a464ad7378fb7c1cc2fdbf191a45942ab59d110f37c
|
7
|
+
data.tar.gz: b2668f14ef34eaffaefed06b3a80394a7f2a404a3d0c94c002dd91a5c42e1fd2ef5597002e2e06504b5a0cf4633042a777bf4395195d73c6b18cac30502e90e5
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# fluent-plugin-rabbitmq
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/nttcom/fluent-plugin-rabbitmq.svg?branch=master)](https://travis-ci.org/nttcom/fluent-plugin-rabbitmq)
|
4
|
-
|
5
3
|
## Overview
|
6
4
|
|
7
5
|
This repository includes input/output plugins for RabbitMQ.
|
@@ -14,6 +12,11 @@ fluentd >= 0.14.0
|
|
14
12
|
|
15
13
|
$ fluent-gem install fluent-plugin-rabbitmq
|
16
14
|
|
15
|
+
## Testing
|
16
|
+
|
17
|
+
$ rabbitmq-server
|
18
|
+
$ rake test
|
19
|
+
|
17
20
|
## Configuration
|
18
21
|
|
19
22
|
### Input
|
@@ -56,6 +59,8 @@ fluentd >= 0.14.0
|
|
56
59
|
|exchange_durable|true|false|durability of create exchange|
|
57
60
|
|manual_ack|true|false|manual ACK|
|
58
61
|
|queue_mode|"lazy"|nil|queue mode|
|
62
|
+
|queue_type|"quorum"|nil|queue type|
|
63
|
+
|
59
64
|
|
60
65
|
### Output
|
61
66
|
|
@@ -1,9 +1,9 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "fluent-plugin-rabbitmq"
|
6
|
-
spec.version = "0.1.
|
6
|
+
spec.version = "0.1.1"
|
7
7
|
spec.authors = ["NTT Communications"]
|
8
8
|
spec.email = ["masaki.matsushita@ntt.com"]
|
9
9
|
|
@@ -15,13 +15,15 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
+
spec.required_ruby_version = ">= 2.5"
|
19
|
+
|
18
20
|
spec.add_development_dependency "bundler"
|
19
21
|
spec.add_development_dependency "rake"
|
20
22
|
spec.add_development_dependency "test-unit"
|
21
23
|
spec.add_development_dependency "ltsv"
|
22
24
|
spec.add_development_dependency "msgpack"
|
23
25
|
|
24
|
-
spec.add_runtime_dependency "fluentd", ">= 0.
|
26
|
+
spec.add_runtime_dependency "fluentd", ">= 1.0.0"
|
25
27
|
|
26
28
|
spec.add_dependency "bunny", "~> 2.14.4"
|
27
29
|
end
|
@@ -73,6 +73,7 @@ module Fluent::Plugin
|
|
73
73
|
config_param :delivery_info_key, :string, default: "delivery_info"
|
74
74
|
config_param :manual_ack, :bool, default: false
|
75
75
|
config_param :queue_mode, :string, default: nil
|
76
|
+
config_param :queue_type, :string, default: nil
|
76
77
|
|
77
78
|
def initialize
|
78
79
|
super
|
@@ -104,6 +105,7 @@ module Fluent::Plugin
|
|
104
105
|
bunny_options[:tls_key] = @tls_key if @tls_key
|
105
106
|
bunny_options[:tls_ca_certificates] = @tls_ca_certificates if @tls_ca_certificates
|
106
107
|
bunny_options[:verify_peer] = @verify_peer
|
108
|
+
bunny_options[:logger] = log
|
107
109
|
|
108
110
|
@parser = parser_create
|
109
111
|
|
@@ -129,6 +131,7 @@ module Fluent::Plugin
|
|
129
131
|
queue_arguments = {}
|
130
132
|
queue_arguments["x-message-ttl"] = @ttl if @ttl
|
131
133
|
queue_arguments["x-queue-mode"] = @queue_mode if @queue_mode
|
134
|
+
queue_arguments["x-queue-type"] = @queue_type if @queue_type
|
132
135
|
queue = channel.queue(
|
133
136
|
@queue,
|
134
137
|
durable: @durable,
|
@@ -41,7 +41,6 @@ module Fluent::Plugin
|
|
41
41
|
config_param :heartbeat, default: nil do |param|
|
42
42
|
param == "server" ? :server : Integer(param)
|
43
43
|
end
|
44
|
-
config_param :threaded, :bool, default: true
|
45
44
|
config_param :frame_max, :integer, default: nil
|
46
45
|
|
47
46
|
config_param :tls, :bool, default: false
|
@@ -96,6 +95,7 @@ module Fluent::Plugin
|
|
96
95
|
bunny_options[:tls_key] = @tls_key if @tls_key
|
97
96
|
bunny_options[:tls_ca_certificates] = @tls_ca_certificates if @tls_ca_certificates
|
98
97
|
bunny_options[:verify_peer] = @verify_peer
|
98
|
+
bunny_options[:logger] = log
|
99
99
|
|
100
100
|
@bunny = Bunny.new(bunny_options)
|
101
101
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-rabbitmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NTT Communications
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 1.0.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 1.0.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: bunny
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,14 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
137
137
|
requirements:
|
138
138
|
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: '
|
140
|
+
version: '2.5'
|
141
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.4.
|
147
|
+
rubygems_version: 3.4.22
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: fluent plugin for rabbitmq (AMQP)
|