Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions agent/structs/config_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ type InstanceLevelRateLimits struct {
RequestsMaxBurst int `alias:"requests_max_burst"`

// Routes is a list of rate limits applied to specific routes.
// For a given request, the first matching route will be applied, if any.
// Overrides any top-level configuration.
Routes []InstanceLevelRouteRateLimits
}
Expand Down
1 change: 1 addition & 0 deletions api/config_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ type InstanceLevelRateLimits struct {
RequestsMaxBurst int `alias:"requests_max_burst"`

// Routes is a list of rate limits applied to specific routes.
// For a given request, the first matching route will be applied, if any
// Overrides any top-level configuration.
Routes []InstanceLevelRouteRateLimits
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ Specifies a list of rate limiting configurations to apply to specific routes to
- `PathPrefix`
- `PathRegex`

Refer to [Examples](#enable-request-rate-limit-on-a-prefixed-path) for example configurations.
Consul applies the rate limit configuration to the first matching route for each request. Refer to [Examples](#enable-request-rate-limit-on-a-prefixed-path) for example configurations.

#### Values

Expand Down