Skip to content

Conversation

@FedeDP
Copy link
Contributor

@FedeDP FedeDP commented Jan 12, 2026

Description

This is a new grpc service that allows to request rotation log params changes to event log exporter.

Changelog

new: event log grpc service

@netlify
Copy link

netlify bot commented Jan 12, 2026

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit cfb288d
🔍 Latest deploy log https://app.netlify.com/projects/tetragon/deploys/69651e5016708d00081f9b5c
😎 Deploy Preview https://deploy-preview-4508--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

// Error if exportFilename points to a directory
return errors.New("passed export JSON logs file point to a directory")
}
logFile := filepath.Base(option.Config.ExportFilename)
Copy link
Contributor Author

@FedeDP FedeDP Jan 12, 2026

Choose a reason for hiding this comment

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

Moved to be internally managed by exporter.

@FedeDP FedeDP added the release-note/minor This PR introduces a minor user-visible change label Jan 12, 2026
@FedeDP FedeDP force-pushed the new/logservice branch 2 times, most recently from 35e04d1 to e4020a7 Compare January 12, 2026 16:35
@FedeDP FedeDP self-assigned this Jan 12, 2026
When created, it receives a list of setters, that need to
implement the `eventLogParamsSetter` interface,
and subsequently it will act on all of them, requesting
log params changes.
The server also caches latest requested params to
be returned by the `GetLogParams` grpc API.

Signed-off-by: Federico Di Pierro <[email protected]>
Also, in tetragon main, split `startExporter` in
`getExporter` + `exporter.Start()`.
This is because we need to fetch the exporter before
start service the logservice server, but we want to
start the exporter after.

Moreover, let exporter manage log file rotation internally,
to allow it to eventually update the rotation params.
Finally, let exporter implement `eventLogParamsSetter`.

Signed-off-by: Federico Di Pierro <[email protected]>
It allows setting and getting logging parameters for event exporter.

Signed-off-by: Federico Di Pierro <[email protected]>
@FedeDP FedeDP marked this pull request as ready for review January 13, 2026 10:16
@FedeDP FedeDP requested a review from a team as a code owner January 13, 2026 10:16
@FedeDP FedeDP requested a review from tpapagian January 13, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/minor This PR introduces a minor user-visible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant