Skip to content

Commit

Permalink
Merge pull request #381 from Kuadrant/336-bad-example-limits-file-in-…
Browse files Browse the repository at this point in the history
…the-docs

doc: fix limits example
  • Loading branch information
eguzki authored Oct 8, 2024
2 parents 9cb6336 + d189b66 commit ff12885
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/server/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Options:
The port to listen on for HTTP [default: 8080]
-l, --limit-name-in-labels
Include the Limit Name in prometheus label
--tracing-endpoint <tracing_endpoint>
The host for the tracing service [default: ]
-v...
Sets the level of verbosity
--tracing-endpoint <tracing_endpoint>
The endpoint for the tracing service
--validate
Validates the LIMITS_FILE and exits
-H, --rate-limit-headers <rate_limit_headers>
Expand Down Expand Up @@ -90,13 +90,13 @@ required:
Here is an example of such a limit definition:
```yaml
namespace: example.org
max_value: 10
seconds: 60
conditions:
- "req.method == 'GET'"
variables:
- user_id
- namespace: example.org
max_value: 10
seconds: 60
conditions:
- "req.method == 'GET'"
variables:
- user_id
```
- `namespace` namespaces the limit, will generally be the domain, [see here](../how-it-works.md)
Expand Down

0 comments on commit ff12885

Please sign in to comment.