Skip to content

Conversation

@destari
Copy link
Contributor

@destari destari commented Nov 25, 2025

Adds native kubernetes log ingest to Gonzo.
Allows selecting by namespaces and pods for filtering, as well as contexts. Point Gonzo at your kubeconfig and let it rip!
When in k8s mode, it will automatically change the columns in the log viewer to show namespace and pod for the log messages. It does it's best to transform the log data into a nice format, but some structured logs are not detected (even when not in k8s mode) so a custom format description file should be used for that.

@destari destari requested review from j0nr33v3 and rbg November 25, 2025 21:28
@rbg
Copy link
Contributor

rbg commented Nov 25, 2025

It’s currently unclear what the expected behavior is when both --otlp-enabled and --k8s-enabled flags are used simultaneously. In practice, it appears that Kubernetes (--k8s-enabled) always takes precedence, rather than the last flag on the command line. If that’s the case, we should clean up the error handling logic to make it explicit which data source is intended to be used—especially given that Gonzo seems to support only a single input source at a time.

Copy link
Contributor

@j0nr33v3 j0nr33v3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs looks good to me, didn't know if we should make the fact that the selector is pod specific more obvious like "--k8s-pod-selector" vs "--k8s-selector" but minor

@destari destari merged commit e9b25b3 into main Dec 1, 2025
4 checks passed
@destari destari deleted the k8s-ingestion branch December 1, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants