Skip to content

Commit

Permalink
Update custom near_limit documentation
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Klein <mattklein123@gmail.com>
Signed-off-by: zufardhiyaulhaq <zufardhiyaulhaq@gmail.com>
  • Loading branch information
zufardhiyaulhaq and mattklein123 committed Nov 3, 2020
1 parent 1665d53 commit 952dd20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ STAT:
* over_limit: Number of rule hits exceeding the threshold rate
* total_hits: Number of rule hits in total

To costum near_limit ratio threshold, you can specify with `NEAR_LIMIT_RATIO` environment variable. It defaults to `0.8` (0-1 scale). These are examples of generated stats for some configured rate limit rules from the above examples:
To use a custom near_limit ratio threshold, you can specify with `NEAR_LIMIT_RATIO` environment variable. It defaults to `0.8` (0-1 scale). These are examples of generated stats for some configured rate limit rules from the above examples:

```
ratelimit.service.rate_limit.mongo_cps.database_default.over_limit: 0
Expand Down

0 comments on commit 952dd20

Please sign in to comment.