You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipeline/filters/throttle.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ The plugin supports the following configuration parameters:
12
12
| Window | Integer | Amount of intervals to calculate average over. Default 5. |
13
13
| Interval | String | Time interval, expressed in "sleep" format. e.g 3s, 1.5m, 0.5h etc |
14
14
| Print\_Status | Bool | Whether to print status messages with current rate and the limits to information logs |
15
+
| Retain | Bool | Whether to whether or not to drop logs if rate limit is exceeded |
15
16
16
17
## Functional description
17
18
@@ -64,6 +65,14 @@ will become:
64
65
```
65
66
66
67
As you can see, last pane of the window was overwritten and 1 message was dropped.
68
+
If you can accept the cost of latency for collector messages, you can retain all the logs without dropped use parameter 'Retain'.
69
+
70
+
### Do not drop messages
71
+
The default value for 'Retain' is 'false',
72
+
For 'Retain' not set or set as 'false', if rate limit is exceeded, throttle will drop the messages.
73
+
In case that, if before fluent-bit first running, there is a input with huge messages which exceeded the throttle's (window * rate * interval), then only the first (window * rate * interval) records will be collected, the others before fluent-bit running will be dropped.
74
+
75
+
If 'Retain' set as 'true', all messages will be collected without dropped, but at the cost of some latency for collecting all messages, which depends on the account of collected target input.
0 commit comments