Skip to content

Commit

Permalink
add documentation for NEAR_LIMIT_RATIO environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zufardhiyaulhaq committed Nov 3, 2020
1 parent c4e7d03 commit fb27f40
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

These are examples of generated stats for some configured rate limit rules from the above examples:
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:

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

0 comments on commit fb27f40

Please sign in to comment.