@@ -25,32 +25,15 @@ To start performing the checks, you can run the plugin from the command line or
25
25
26
26
From the command line you can let Fluent Bit generate the checks with the following options:
27
27
28
- ``` bash
29
- fluent-bit -i health -p host=127.0.0.1 -p port=80 -o stdout
28
+ ``` shell
29
+ $ fluent-bit -i health -p host=127.0.0.1 -p port=80 -o stdout
30
30
```
31
31
32
32
### Configuration file
33
33
34
- In your main configuration file append the following ` Input ` and ` Output ` sections :
34
+ In your main configuration file append the following:
35
35
36
36
{% tabs %}
37
- {% tab title="fluent-bit.conf" %}
38
-
39
- ``` python
40
- [INPUT ]
41
- Name health
42
- Host 127.0 .0.1
43
- Port 80
44
- Interval_Sec 1
45
- Interval_NSec 0
46
-
47
- [OUTPUT ]
48
- Name stdout
49
- Match *
50
- ```
51
-
52
- {% endtab %}
53
-
54
37
{% tab title="fluent-bit.yaml" %}
55
38
56
39
``` yaml
@@ -61,33 +44,62 @@ pipeline:
61
44
port : 80
62
45
interval_sec : 1
63
46
interval_nsec : 0
47
+
64
48
outputs :
65
49
- name : stdout
66
50
match : ' *'
67
51
` ` `
68
52
53
+ {% endtab %}
54
+ {% tab title="fluent-bit.conf" %}
55
+
56
+ ` ` ` text
57
+ [INPUT]
58
+ Name health
59
+ Host 127.0.0.1
60
+ Port 80
61
+ Interval_Sec 1
62
+ Interval_NSec 0
63
+
64
+ [OUTPUT]
65
+ Name stdout
66
+ Match *
67
+ ```
68
+
69
69
{% endtab %}
70
70
{% endtabs %}
71
71
72
72
## Testing
73
73
74
74
Once Fluent Bit is running, you will see some random values in the output interface similar to this:
75
75
76
- ` ` ` bash
76
+ ``` shell
77
77
$ fluent-bit -i health -p host=127.0.0.1 -p port=80 -o stdout
78
- Fluent Bit v1.8.0
79
- * Copyright (C) 2019-2021 The Fluent Bit Authors
80
- * Copyright (C) 2015-2018 Treasure Data
78
+
79
+ Fluent Bit v4.0.0
80
+ * Copyright (C) 2015-2025 The Fluent Bit Authors
81
81
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
82
82
* https://fluentbit.io
83
83
84
- [2021/06/20 08:39:47] [ info] [engine] started (pid=4621)
85
- [2021/06/20 08:39:47] [ info] [storage] version=1.1.1, initializing...
86
- [2021/06/20 08:39:47] [ info] [storage] in-memory
87
- [2021/06/20 08:39:47] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
88
- [2021/06/20 08:39:47] [ info] [sp] stream processor started
84
+ ______ _ _ ______ _ _ ___ _____
85
+ | ___| | | | | ___ (_) | / || _ |
86
+ | | _ | | _ _ ___ _ __ | | _ | | _/ /_| | _ __ __/ /| || | /' |
87
+ | _| | | | | |/ _ \ ' _ \| __| | ___ \ | __| \ \ / / /_| || /| |
88
+ | | | | | _| | __/ | | | | _ | | _/ / | | _ \ V /\_ __ | \ | _/ /
89
+ \_ | | _| \_ _,_| \_ __| _| | _| \_ _| \_ ___/| _| \_ _| \_ / | _(_)___/
90
+
91
+
92
+ [2025/06/30 16:12:06] [ info] [fluent bit] version=4.0.0, commit=3a91b155d6, pid=91577
93
+ [2025/06/30 16:12:06] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128
94
+ [2025/06/30 16:12:06] [ info] [simd ] disabled
95
+ [2025/06/30 16:12:06] [ info] [cmetrics] version=0.9.9
96
+ [2025/06/30 16:12:06] [ info] [ctraces ] version=0.6.2
97
+ [2025/06/30 16:12:06] [ info] [input:health:health.0] initializing
98
+ [2025/06/30 16:12:06] [ info] [input:health:health.0] storage_strategy=' memory' (memory only)
99
+ [2025/06/30 16:12:06] [ info] [sp] stream processor started
100
+ [2025/06/30 16:12:06] [ info] [output:stdout:stdout.0] worker # 0 started
89
101
[0] health.0: [1624145988.305640385, {" alive" => true}]
90
102
[1] health.0: [1624145989.305575360, {" alive" => true}]
91
103
[2] health.0: [1624145990.306498573, {" alive" => true}]
92
104
[3] health.0: [1624145991.305595498, {" alive" => true}]
93
- ` ` `
105
+ ```
0 commit comments