Skip to content

Comments

env: add new ${FLUENT_BIT_PID} environment variable#9563

Open
edsiper wants to merge 4 commits intomasterfrom
env-fluent-bit-pid
Open

env: add new ${FLUENT_BIT_PID} environment variable#9563
edsiper wants to merge 4 commits intomasterfrom
env-fluent-bit-pid

Conversation

@edsiper
Copy link
Member

@edsiper edsiper commented Nov 6, 2024

This patch adds an internal environment variable ${FLUENT_BIT_PID} that exposes the PID of the running Fluent Bit process. This enables other components to easily access and utilize the PID as needed.

Usage example:

fluent-bit -i cpu -p "pid=\${FLUENT_BIT_PID}" -o stdout

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
@edsiper
Copy link
Member Author

edsiper commented Nov 11, 2024

somehow enabling this now makes the fuzzer test to fail, need more investigation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant