feat: add direct stdout export mode - #5103
Draft
irozzo-1A wants to merge 2 commits into
Draft
Conversation
Add a new --export-stdout flag that enables the tetragon agent to write JSON events directly to its stdout, bypassing file-based export and the sidecar container. This reduces operational complexity for users who prefer inline event logs. Note that when this option is enabled the normal logs are directed to stderr to avoid interleaving with the stream of events. Signed-off-by: irozzo-1A <iacopo@sysdig.com>
Add a new export.mode value "direct-stdout" that writes events directly to the tetragon container stdout without a sidecar or host volume. The existing "stdout" mode (sidecar-based file export) remains the default. Signed-off-by: irozzo-1A <iacopo@sysdig.com>
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1710
Description
Add a new
--export-stdoutflag that writes JSON events directly to the Tetragon agent's stdout instead of a file. In Kubernetes, this is exposed asexport.mode: direct-stdoutin the Helm chart, which removes the need for a sidecar container and an export-logs host volume.When active, agent logs are automatically redirected to stderr to avoid interleaving with the event stream. The flag is mutually exclusive with
--export-filenameand--export-file-rotation-interval. The existingstdout(sidecar-based) mode remains the Helm default for now.Changelog