@@ -71,10 +71,10 @@ Start Fluent bit with the corresponding configuration chosen above:
71
71
72
72
``` shell
73
73
# For YAML configuration.
74
- bin/fluent-bit -c fluent-bit.conf
74
+ $ ./ bin/fluent-bit --config fluent-bit.yaml
75
75
76
76
# For classic configuration.
77
- bin/fluent-bit -c fluent-bit.conf
77
+ $ ./ bin/fluent-bit --config fluent-bit.conf
78
78
```
79
79
80
80
Fluent Bit starts and generates output in your terminal:
@@ -94,8 +94,8 @@ Use `curl` to gather information about the HTTP server. The following command se
94
94
the command output to the ` jq ` program, which outputs human-readable JSON data to the
95
95
terminal.
96
96
97
- ``` bash
98
- curl -s http://127.0.0.1:2020 | jq
97
+ ``` shell
98
+ $ curl -s http://127.0.0.1:2020 | jq
99
99
{
100
100
" fluent-bit" : {
101
101
" version" : " 0.13.0" ,
@@ -264,8 +264,8 @@ layer.
264
264
265
265
Query the service uptime with the following command:
266
266
267
- ``` bash
268
- curl -s http://127.0.0.1:2020/api/v1/uptime | jq
267
+ ``` shell
268
+ $ curl -s http://127.0.0.1:2020/api/v1/uptime | jq
269
269
```
270
270
271
271
The command prints a similar output like this:
@@ -281,8 +281,8 @@ The command prints a similar output like this:
281
281
282
282
Query internal metrics in JSON format with the following command:
283
283
284
- ``` bash
285
- curl -s http://127.0.0.1:2020/api/v1/metrics | jq
284
+ ``` shell
285
+ $ curl -s http://127.0.0.1:2020/api/v1/metrics | jq
286
286
```
287
287
288
288
The command prints a similar output like this:
@@ -311,8 +311,8 @@ The command prints a similar output like this:
311
311
312
312
Query internal metrics in Prometheus Text 0.0.4 format:
313
313
314
- ``` bash
315
- curl -s http://127.0.0.1:2020/api/v1/metrics/prometheus
314
+ ``` shell
315
+ $ curl -s http://127.0.0.1:2020/api/v1/metrics/prometheus
316
316
```
317
317
318
318
This command returns the same metrics in Prometheus format instead of JSON:
@@ -361,7 +361,7 @@ pipeline:
361
361
362
362
{% tab title="fluent-bit.conf" %}
363
363
364
- ` ` ` yaml
364
+ ` ` ` text
365
365
[SERVICE]
366
366
HTTP_Server On
367
367
HTTP_Listen 0.0.0.0
@@ -482,7 +482,7 @@ pipeline:
482
482
483
483
{% tab title="fluent-bit.conf" %}
484
484
485
- ` ` ` yaml
485
+ ` ` ` text
486
486
[SERVICE]
487
487
HTTP_Server On
488
488
HTTP_Listen 0.0.0.0
@@ -505,8 +505,8 @@ pipeline:
505
505
506
506
Use the following command to call the health endpoint:
507
507
508
- ``` bash
509
- curl -s http://127.0.0.1:2020/api/v1/health
508
+ ``` shell
509
+ $ curl -s http://127.0.0.1:2020/api/v1/health
510
510
```
511
511
512
512
With the example configuration, the health status is determined by the following equation:
0 commit comments