Skip to content

Commit 1c4c200

Browse files
committed
conf: document 'storage' properties
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 26c258f commit 1c4c200

File tree

1 file changed

+65
-20
lines changed

1 file changed

+65
-20
lines changed

conf/fluent-bit.conf

Lines changed: 65 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[SERVICE]
22
# Flush
33
# =====
4-
# Set an interval of seconds before to flush records to a destination
5-
Flush 5
4+
# set an interval of seconds before to flush records to a destination
5+
flush 5
66

77
# Daemon
88
# ======
9-
# Instruct Fluent Bit to run in foreground or background mode.
10-
Daemon Off
9+
# instruct Fluent Bit to run in foreground or background mode.
10+
daemon Off
1111

1212
# Log_Level
1313
# =========
@@ -19,30 +19,75 @@
1919
# - debug
2020
# - trace
2121
#
22-
# By default 'info' is set, that means it includes 'error' and 'warning'.
23-
Log_Level info
22+
# by default 'info' is set, that means it includes 'error' and 'warning'.
23+
log_level info
2424

25-
# Parsers_File
25+
# Parsers File
2626
# ============
27-
# Specify an optional 'Parsers' configuration file
28-
Parsers_File parsers.conf
29-
Plugins_File plugins.conf
27+
# specify an optional 'Parsers' configuration file
28+
parsers_file parsers.conf
29+
30+
# Plugins File
31+
# ============
32+
# specify an optional 'Plugins' configuration file to load external plugins.
33+
plugins_file plugins.conf
3034

3135
# HTTP Server
3236
# ===========
3337
# Enable/Disable the built-in HTTP Server for metrics
34-
HTTP_Server Off
35-
HTTP_Listen 0.0.0.0
36-
HTTP_Port 2020
38+
http_server Off
39+
http_listen 0.0.0.0
40+
http_port 2020
41+
42+
# Storage
43+
# =======
44+
# Fluent Bit can use memory and filesystem buffering based mechanisms
45+
#
46+
# - https://docs.fluentbit.io/manual/administration/buffering-and-storage
47+
#
48+
# storage metrics
49+
# ---------------
50+
# publish storage pipeline metrics in '/api/v1/storage'. The metrics are
51+
# exported only if the 'http_server' optoin is enabled.
52+
#
53+
storage.metrics on
54+
55+
# storage.path
56+
# ------------
57+
# absolute file system path to store filesystem data buffers (chunks).
58+
#
59+
# storage.path /tmp/storage
60+
61+
# storage.sync
62+
# ------------
63+
# configure the synchronization mode used to store the data into the
64+
# filesystem. It can take the values normal or full.
65+
#
66+
# storage.sync normal
67+
68+
# storage.checksum
69+
# ----------------
70+
# enable the data integrity check when writing and reading data from the
71+
# filesystem. The storage layer uses the CRC32 algorithm.
72+
#
73+
# storage.checksum off
74+
75+
# storage.backlog.mem_limit
76+
# -------------------------
77+
# if storage.path is set, Fluent Bit will look for data chunks that were
78+
# not delivered and are still in the storage layer, these are called
79+
# backlog data. This option configure a hint of maximum value of memory
80+
# to use when processing these records.
81+
#
82+
# storage.backlog.mem_limit 5M
3783

3884
[INPUT]
39-
Name cpu
40-
Tag cpu.local
41-
# Interval Sec
42-
# ====
85+
name cpu
86+
tag cpu.local
87+
4388
# Read interval (sec) Default: 1
44-
Interval_Sec 1
89+
interval_sec 1
4590

4691
[OUTPUT]
47-
Name stdout
48-
Match *
92+
name stdout
93+
match *

0 commit comments

Comments
 (0)