Skip to content

Commit 9e64334

Browse files
Merge pull request #864 from mendix/LM-2365_fluentbit_buffer
Possibility to adjust fluentbit buffer size for Splunk and New Relic integrations.
2 parents d2292d5 + aa1f838 commit 9e64334

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

buildpack/telemetry/fluentbit.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"FLUENTBIT_LOG_LEVEL": os.getenv(
2020
"FLUENTBIT_LOG_LEVEL", default="info"
2121
).lower(),
22+
"FLUENTBIT_LOGS_BUFFER_SIZE": os.getenv(
23+
"FLUENTBIT_LOGS_BUFFER_SIZE", default="128"),
24+
"FLUENTBIT_LOGS_MEM_BUF_LIMIT": os.getenv(
25+
"FLUENTBIT_LOGS_MEM_BUF_LIMIT", default="50MB")
2226
}
2327

2428

etc/fluentbit/fluentbit.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
Port ${FLUENTBIT_LOGS_PORT}
55
Format json
66
Log_Level ${FLUENTBIT_LOG_LEVEL}
7+
Buffer_Size ${FLUENTBIT_LOGS_BUFFER_SIZE}
8+
Mem_Buf_Limit ${FLUENTBIT_LOGS_MEM_BUF_LIMIT}
79

810
[FILTER]
911
Name lua

0 commit comments

Comments
 (0)