Skip to content

Commit

Permalink
doc: fix limits example
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Oct 8, 2024
1 parent 9cb6336 commit d189b66
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 d189b66

Please sign in to comment.