-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(journaldreceiver): fail if unsufficient permissions for journalctl command #23276
feat(journaldreceiver): fail if unsufficient permissions for journalctl command #23276
Conversation
07a0da2
to
6f4725d
Compare
@djaglowski Could you take a look at the code? I have two issues:
|
6f4725d
to
a163beb
Compare
@sumo-drosiek, for unit testing, maybe you can mock the I don't think we need to force the collector to exit. If a failure happens in |
The feature is logging that the command failed and why. So unit test should check logs (at least for current code)
In the case I'm working on, |
If the problem isn't detectable during What you're describing sounds about right to me. In the future, I think we can improve upon the way this error state is exposed, either by shipping logs via the otel-go library or reporting per-component status. |
how do you define it? I believe it is, it took 3 ms in the example |
@sumo-drosiek, I'm not sure if we have a precise definition, but the idea is that In my opinion, if this is an error that will occur every time |
b1e2e1b
to
aec8c89
Compare
Signed-off-by: Dominik Rosiek <[email protected]>
Signed-off-by: Dominik Rosiek <[email protected]>
aec8c89
to
99e49e9
Compare
@kovrus Can we proceed with this PR? |
Description:
Wait for journalctl to finish and log error in case there is any issue
Link to tracking Issue: #20906
Testing:
Documentation: N/A