Rate limit

Statistics

Every configured rate limit filter has statistics rooted at ratelimit.. with the following statistics:

NameTypeDescription
totalCounterTotal requests to the rate limit service
errorCounterTotal errors contacting the rate limit service
over_limitCounterTotal over limit responses from the rate limit service
okCounterTotal under limit responses from the rate limit service
cx_closedCounterTotal connections closed due to an over limit response from the rate limit service
activeGaugeTotal active requests to the rate limit service
failure_mode_allowedCounterTotal requests that were error(s) but were allowed through because of failure_mode_deny set to false.

Runtime

The network rate limit filter supports the following runtime settings:

ratelimit.tcp_filter_enabled

% of connections that will call the rate limit service. Defaults to 100.

ratelimit.tcp_filter_enforcing

% of connections that will call the rate limit service and enforce the decision. Defaults to 100. This can be used to test what would happen before fully enforcing the outcome.