Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exporter: return err when exporter fails to start #2127

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

willfindlay
Copy link
Contributor

In general, when Tetragon encounters an error in its initial configuration, we expect the agent to fail to start and return an appriate error explaining the configuration issue. This is the case for many aspects of initialization, except for the exporter which currently just logs an error message. This is perplexing behaviour because users who want to configure an exporter generally consume Tetragon events that way, so it makes no sense to simply refuse to export events and merrily hum along. Fix this issue by returning an appropriate error when the exporter fails to start so we can bubble it up.

Fail with an error when the event exporter fails to start.

In general, when Tetragon encounters an error in its initial configuration, we expect the agent to fail to start and return an appriate error explaining the configuration issue. This is the case for many aspects of initialization, except for the exporter which currently just logs an error message. This is perplexing behaviour because users who want to configure an exporter generally consume Tetragon events that way, so it makes no sense to simply refuse to export events and merrily hum along. Fix this issue by returning an appropriate error when the exporter fails to start so we can bubble it up.

Signed-off-by: William Findlay <will@isovalent.com>
@willfindlay willfindlay added the release-note/minor This PR introduces a minor user-visible change label Feb 20, 2024
@willfindlay willfindlay requested a review from a team as a code owner February 20, 2024 21:01
Copy link
Member

@tixxdz tixxdz left a comment

Choose a reason for hiding this comment

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

Thank you William ;-)

@willfindlay willfindlay merged commit 1a8e6f6 into main Feb 21, 2024
33 checks passed
@willfindlay willfindlay deleted the pr/willfindlay/error-on-exporter-not-starting branch February 21, 2024 22:34
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.

None yet

2 participants