Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix limits example #380

Closed
wants to merge 1 commit into from
Closed
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
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
Loading