Skip to content

Commit

Permalink
Docs: improve rate limit documentation
Browse files Browse the repository at this point in the history
The documentation describes the rateLimit action flag. This applies per
thread. Improve the documentation to make that clear.

Signed-off-by: Kevin Sheldrake <kevin.sheldrake@isovalent.com>
  • Loading branch information
kevsecurity committed Jan 11, 2024
1 parent a7ec419 commit 53d3567
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/content/en/docs/concepts/tracing-policy/selectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,10 @@ This action allows you to specify parameters for the `Post` action.
`Post` takes the `rateLimit` parameter with a time value. This value defaults
to seconds, but post-fixing 'm' or 'h' will cause the value to be interpreted
in minutes or hours. When this parameter is specified for an action, that
action will check if the same action has fired within the time window, with the
same inspected arguments. (Only the first 16 bytes of each inspected argument
is used in the matching. Only supported on kernels v5.3 onwards.)
action will check if the same action has fired, for the same thread, within
the time window, with the same inspected arguments. (Only the first 40 bytes
of each inspected argument is used in the matching. Only supported on kernels
v5.3 onwards.)

For example, you can specify a selector to only generate an event every 5
minutes with adding the following action and its paramater:
Expand Down

0 comments on commit 53d3567

Please sign in to comment.