Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions administration/monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ Start Fluent bit with the corresponding configuration chosen above:

```shell
# For YAML configuration.
bin/fluent-bit -c fluent-bit.conf
$ ./bin/fluent-bit --config fluent-bit.yaml

# For classic configuration.
bin/fluent-bit -c fluent-bit.conf
$ ./bin/fluent-bit --config fluent-bit.conf
```

Fluent Bit starts and generates output in your terminal:
Expand All @@ -94,8 +94,8 @@ Use `curl` to gather information about the HTTP server. The following command se
the command output to the `jq` program, which outputs human-readable JSON data to the
terminal.

```bash
curl -s http://127.0.0.1:2020 | jq
```shell
$ curl -s http://127.0.0.1:2020 | jq
{
"fluent-bit": {
"version": "0.13.0",
Expand Down Expand Up @@ -264,8 +264,8 @@ layer.

Query the service uptime with the following command:

```bash
curl -s http://127.0.0.1:2020/api/v1/uptime | jq
```shell
$ curl -s http://127.0.0.1:2020/api/v1/uptime | jq
```

The command prints a similar output like this:
Expand All @@ -281,8 +281,8 @@ The command prints a similar output like this:

Query internal metrics in JSON format with the following command:

```bash
curl -s http://127.0.0.1:2020/api/v1/metrics | jq
```shell
$ curl -s http://127.0.0.1:2020/api/v1/metrics | jq
```

The command prints a similar output like this:
Expand Down Expand Up @@ -311,8 +311,8 @@ The command prints a similar output like this:

Query internal metrics in Prometheus Text 0.0.4 format:

```bash
curl -s http://127.0.0.1:2020/api/v1/metrics/prometheus
```shell
$ curl -s http://127.0.0.1:2020/api/v1/metrics/prometheus
```

This command returns the same metrics in Prometheus format instead of JSON:
Expand Down Expand Up @@ -361,7 +361,7 @@ pipeline:

{% tab title="fluent-bit.conf" %}

```yaml
```text
[SERVICE]
HTTP_Server On
HTTP_Listen 0.0.0.0
Expand Down Expand Up @@ -482,7 +482,7 @@ pipeline:

{% tab title="fluent-bit.conf" %}

```yaml
```text
[SERVICE]
HTTP_Server On
HTTP_Listen 0.0.0.0
Expand All @@ -505,8 +505,8 @@ pipeline:

Use the following command to call the health endpoint:

```bash
curl -s http://127.0.0.1:2020/api/v1/health
```shell
$ curl -s http://127.0.0.1:2020/api/v1/health
```

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