fluent-plugin-quota-throttle 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ruby.yml +38 -0
- data/.gitignore +3 -0
- data/Gemfile +3 -0
- data/LICENSE +201 -0
- data/README.md +150 -0
- data/Rakefile +9 -0
- data/fluent-plugin-quota-throttle.gemspec +30 -0
- data/lib/fluent/plugin/config_parser.rb +74 -0
- data/lib/fluent/plugin/filter_quota_throttle.rb +142 -0
- data/lib/fluent/plugin/matcher.rb +61 -0
- data/lib/fluent/plugin/rate_limiter.rb +113 -0
- data/test/config_files/filter_plugin_test.yml +28 -0
- data/test/config_files/matcher_test.yml +39 -0
- data/test/config_files/parser_test.yml +28 -0
- data/test/fluent/plugin/filter_quota_throttle_test.rb +85 -0
- data/test/helper.rb +10 -0
- data/test/modules/config_parser_test.rb +42 -0
- data/test/modules/matcher_test.rb +67 -0
- data/test/modules/rate_limiter_test.rb +72 -0
- data/test/scripts/example.conf +24 -0
- data/test/scripts/example.yml +24 -0
- data/test/scripts/test.sh +10 -0
- metadata +219 -0
metadata
ADDED
@@ -0,0 +1,219 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fluent-plugin-quota-throttle
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Athish Pranav D
|
8
|
+
- Dipendra Singh
|
9
|
+
- Rubrik Inc.
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2024-07-14 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bundler
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: minitest
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '5.14'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '5.14'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: test-unit
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '3.6'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '3.6'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rake
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '13.0'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '13.0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: mutex_m
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.1'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0.1'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: webrick
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '1.8'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '1.8'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: csv
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '3.3'
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '3.3'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: base64
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0.2'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0.2'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: fluentd
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '1.9'
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '1.9'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: fluent-plugin-prometheus
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - '='
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: 2.1.0
|
148
|
+
type: :runtime
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - '='
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 2.1.0
|
155
|
+
description:
|
156
|
+
email:
|
157
|
+
- athish.pranav@rubrik.com
|
158
|
+
- Dipendra.Singh@rubrik.com
|
159
|
+
executables: []
|
160
|
+
extensions: []
|
161
|
+
extra_rdoc_files: []
|
162
|
+
files:
|
163
|
+
- ".github/workflows/ruby.yml"
|
164
|
+
- ".gitignore"
|
165
|
+
- Gemfile
|
166
|
+
- LICENSE
|
167
|
+
- README.md
|
168
|
+
- Rakefile
|
169
|
+
- fluent-plugin-quota-throttle.gemspec
|
170
|
+
- lib/fluent/plugin/config_parser.rb
|
171
|
+
- lib/fluent/plugin/filter_quota_throttle.rb
|
172
|
+
- lib/fluent/plugin/matcher.rb
|
173
|
+
- lib/fluent/plugin/rate_limiter.rb
|
174
|
+
- test/config_files/filter_plugin_test.yml
|
175
|
+
- test/config_files/matcher_test.yml
|
176
|
+
- test/config_files/parser_test.yml
|
177
|
+
- test/fluent/plugin/filter_quota_throttle_test.rb
|
178
|
+
- test/helper.rb
|
179
|
+
- test/modules/config_parser_test.rb
|
180
|
+
- test/modules/matcher_test.rb
|
181
|
+
- test/modules/rate_limiter_test.rb
|
182
|
+
- test/scripts/example.conf
|
183
|
+
- test/scripts/example.yml
|
184
|
+
- test/scripts/test.sh
|
185
|
+
homepage: https://github.com/rubrikinc/fluent-plugin-quota-throttle
|
186
|
+
licenses:
|
187
|
+
- Apache-2.0
|
188
|
+
metadata: {}
|
189
|
+
post_install_message:
|
190
|
+
rdoc_options: []
|
191
|
+
require_paths:
|
192
|
+
- lib
|
193
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - ">="
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
requirements: []
|
204
|
+
rubygems_version: 3.5.11
|
205
|
+
signing_key:
|
206
|
+
specification_version: 4
|
207
|
+
summary: Fluentd filter for throttling logs based on a configurable quotas.
|
208
|
+
test_files:
|
209
|
+
- test/config_files/filter_plugin_test.yml
|
210
|
+
- test/config_files/matcher_test.yml
|
211
|
+
- test/config_files/parser_test.yml
|
212
|
+
- test/fluent/plugin/filter_quota_throttle_test.rb
|
213
|
+
- test/helper.rb
|
214
|
+
- test/modules/config_parser_test.rb
|
215
|
+
- test/modules/matcher_test.rb
|
216
|
+
- test/modules/rate_limiter_test.rb
|
217
|
+
- test/scripts/example.conf
|
218
|
+
- test/scripts/example.yml
|
219
|
+
- test/scripts/test.sh
|