Closed bombela closed 6 years ago
dude, follow the link in the PR description.
On Mon, Mar 26, 2018, 17:54 Gaurav Jain notifications@github.com wrote:
@jaingaurav commented on this pull request.
In lib/fluent/plugin/filter_throttle.rb https://github.com/rubrikinc/fluent-plugin-throttle/pull/1#discussion_r177278292 :
@@ -0,0 +1,137 @@ +require 'fluent/filter' + +module Fluent
- class ThrottleFilter < Filter
- Fluent::Plugin.register_
filter('throttle', self) +
- config_param :group_key, :string, :default => 'kubernetes.container_name'
- config_param :group_bucket_period_s, :integer, :default => 60
- config_param :group_bucket_limit, :integer, :default => 6000
Could we please add documentation to all the parameters?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rubrikinc/fluent-plugin-throttle/pull/1#pullrequestreview-107121641, or mute the thread https://github.com/notifications/unsubscribe-auth/AANMjOU-srMN89MJ8IwzWaJjzS9ALWbAks5tiY2ugaJpZM4S8CuV .
Add throttling support.
Implementation is some sort of leaky bucket. Configuration allows to set how many logs are allowed for a specific time period.
Refer to README.md for some extra documentation.