Skip to content

Add Lua function to rate limit logs based on size #10443

Open
@nilushancosta

Description

@nilushancosta

Is your feature request related to a problem? Please describe.
https://github.com/fluent/fluent-bit/blob/master/scripts/rate_limit.lua has a script to throttle logs based on the count.
There are certain situations where it is necessary to rate limit based on the size of logs. E.g. Allow a container to publish a maximum of 10MB of logs per minute.

Describe the solution you'd like
Add a Lua function to the script in https://github.com/fluent/fluent-bit/blob/master/scripts/rate_limit to rate limit based on size

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions