Skip to content

Commit 0940071

Browse files
committed
Fixing broken detailed docs and examples for hot reload. Issue part of #1957.
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent acaa2ef commit 0940071

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

administration/hot-reload.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,27 @@ To get started with reloading over HTTP, enable the HTTP Server
1515
in the configuration file:
1616

1717
{% tabs %}
18+
{% tab title="fluent-bit.yaml" %}
19+
20+
```yaml
21+
service:
22+
http_server: on
23+
http_listen: 0.0.0.0
24+
http_port: 2020
25+
hot_reload: on
26+
```
27+
28+
{% endtab %}
1829
{% tab title="fluent-bit.conf" %}
30+
1931
```text
2032
[SERVICE]
21-
HTTP_Server On
22-
HTTP_Listen 0.0.0.0
23-
HTTP_PORT 2020
24-
Hot_Reload On
25-
...
33+
HTTP_Server On
34+
HTTP_Listen 0.0.0.0
35+
HTTP_PORT 2020
36+
Hot_Reload On
2637
```
27-
{% endtab %}
2838

29-
{% tab title="fluent-bit.yaml" %}
30-
```yaml
31-
service:
32-
http_server: on
33-
http_listen: 0.0.0.0
34-
http_port: 2020
35-
hot_reload: on
36-
```
3739
{% endtab %}
3840
{% endtabs %}
3941

@@ -51,7 +53,7 @@ Use the following HTTP endpoints to perform a hot reload:
5153

5254
For using curl to reload Fluent Bit, users must specify an empty request body as:
5355

54-
```text
56+
```shell
5557
curl -X POST -d '{}' localhost:2020/api/v2/reload
5658
```
5759

@@ -77,4 +79,4 @@ The endpoint returns `hot_reload_count` as follows:
7779
{"hot_reload_count":3}
7880
```
7981

80-
The default value of the counter is `0`.
82+
The default value of the counter is `0`.

0 commit comments

Comments
 (0)