Skip to content

Commit 26cc8e1

Browse files
authored
Fixing issues with monitoring docs page. Fixes #1784. (#1785)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 81a9fbe commit 26cc8e1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

administration/monitoring.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ Start Fluent bit with the corresponding configuration chosen above:
7171

7272
```shell
7373
# For YAML configuration.
74-
bin/fluent-bit -c fluent-bit.conf
74+
$ ./bin/fluent-bit --config fluent-bit.yaml
7575

7676
# For classic configuration.
77-
bin/fluent-bit -c fluent-bit.conf
77+
$ ./bin/fluent-bit --config fluent-bit.conf
7878
```
7979

8080
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
9494
the command output to the `jq` program, which outputs human-readable JSON data to the
9595
terminal.
9696

97-
```bash
98-
curl -s http://127.0.0.1:2020 | jq
97+
```shell
98+
$ curl -s http://127.0.0.1:2020 | jq
9999
{
100100
"fluent-bit": {
101101
"version": "0.13.0",
@@ -264,8 +264,8 @@ layer.
264264

265265
Query the service uptime with the following command:
266266

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
269269
```
270270

271271
The command prints a similar output like this:
@@ -281,8 +281,8 @@ The command prints a similar output like this:
281281

282282
Query internal metrics in JSON format with the following command:
283283

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
286286
```
287287

288288
The command prints a similar output like this:
@@ -311,8 +311,8 @@ The command prints a similar output like this:
311311

312312
Query internal metrics in Prometheus Text 0.0.4 format:
313313

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
316316
```
317317

318318
This command returns the same metrics in Prometheus format instead of JSON:
@@ -361,7 +361,7 @@ pipeline:
361361
362362
{% tab title="fluent-bit.conf" %}
363363
364-
```yaml
364+
```text
365365
[SERVICE]
366366
HTTP_Server On
367367
HTTP_Listen 0.0.0.0
@@ -482,7 +482,7 @@ pipeline:
482482
483483
{% tab title="fluent-bit.conf" %}
484484
485-
```yaml
485+
```text
486486
[SERVICE]
487487
HTTP_Server On
488488
HTTP_Listen 0.0.0.0
@@ -505,8 +505,8 @@ pipeline:
505505

506506
Use the following command to call the health endpoint:
507507

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
510510
```
511511

512512
With the example configuration, the health status is determined by the following equation:

0 commit comments

Comments
 (0)