Skip to content

Commit b674883

Browse files
authored
Added YAML examples to scheduling and retries doc. (#1743)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent bc48314 commit b674883

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

administration/scheduling-and-retries.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,22 @@ The upper bound will be 30. The waiting time will be a random number between (3,
6565
The following example configures the `scheduler.base` as `3` seconds and
6666
`scheduler.cap` as `30` seconds.
6767

68+
{% tabs %}
69+
{% tab title="fluent-bit.yaml" %}
70+
71+
```yaml
72+
service:
73+
flush: 5
74+
daemon: off
75+
log_level: debug
76+
scheduler.base: 3
77+
scheduler.cap: 30
78+
```
79+
80+
{% endtab %}
81+
82+
{% tab title="fluent-bit.conf" %}
83+
6884
```text
6985
[SERVICE]
7086
Flush 5
@@ -74,6 +90,9 @@ The following example configures the `scheduler.base` as `3` seconds and
7490
scheduler.cap 30
7591
```
7692

93+
{% endtab %}
94+
{% endtabs %}
95+
7796
The waiting time will be:
7897

7998
| Nth retry | Waiting time range (seconds) |
@@ -100,6 +119,31 @@ impose a limit to try N times and then discard the data after reaching that limi
100119
The following example configures two outputs, where the HTTP plugin has an unlimited
101120
number of retries, and the Elasticsearch plugin have a limit of `5` retries:
102121

122+
{% tabs %}
123+
{% tab title="fluent-bit.yaml" %}
124+
125+
```yaml
126+
pipeline:
127+
inputs:
128+
...
129+
130+
outputs:
131+
- name: http
132+
host: 192.168.5.6
133+
port: 8080
134+
retry_limit: false
135+
136+
- name: es
137+
host: 192.168.5.20
138+
port: 9200
139+
logstash_format: on
140+
retry_limit: 5
141+
```
142+
143+
{% endtab %}
144+
145+
{% tab title="fluent-bit.conf" %}
146+
103147
```text
104148
[OUTPUT]
105149
Name http
@@ -114,3 +158,6 @@ number of retries, and the Elasticsearch plugin have a limit of `5` retries:
114158
Logstash_Format On
115159
Retry_Limit 5
116160
```
161+
162+
{% endtab %}
163+
{% endtabs %}

0 commit comments

Comments
 (0)