throttle

throttle #

CategoryScope
Routingrecord

The “throttle” pipeline processor: per-key rate limiting over the current records, backed by the framework’s rate limiter (token bucket). Records exceeding the budget are either tagged (default) or dropped.

Configuration #

FieldTypeDefaultDescription
key_fieldsliststringFields hashed or grouped into the rate-limit key.
max_eventsint100Maximum number of events handled per invocation.
perstring“1s”Rate-limit window the max_events budget applies to (duration, e.g. 1s).
actionstring“tag”tag
tagstring“_throttled”Tag appended to the record when processing fails.

Example #

processor:
  - for_each:
      processor:
        - throttle:
            key_fields: ["host.name"]
            max_events: 100
            per: 1s
            action: tag
            tag: _throttled
Edit Edit this page