-
Notifications
You must be signed in to change notification settings - Fork 151
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
Add journald config #290
Add journald config #290
Conversation
e8b4b05
to
b06d27b
Compare
helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl
Outdated
Show resolved
Hide resolved
f3d717e
to
18e1da9
Compare
helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl
Outdated
Show resolved
Hide resolved
helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl
Outdated
Show resolved
Hide resolved
helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl
Outdated
Show resolved
Hide resolved
Did you test? It doesn't for me now. I'm getting these errors
Looks like |
@dmitryax Thanks for checking. It was working fine during my testing as I was testing with |
This is sad that not specifying units explicitly doesn't give us Do you know if this is a journald limitation, or something that can be fixed in journald operator of otel logs collection library? If we cannot do anything with that on otel collector side, I would suggest even removing the option to collect logs from all units and always require specifying the units explicitly. We can have 3 units enabled by default as you provided initially in this PR, but that it's introducing 3 new receivers with the current implementation. What if we switch to the 3 units specified explicitly, but keep journald logs collection disabled by default. And once this issue is resolved, we enable it by default. How does it sound? |
@dmitryax Units are configurable and thats how Journald input works, it provides unit value if its a part of the supplied configuration. Units parameter supports PATTERN match, if configured, units parameter show messages for the specified systemd unit UNIT, or for any of the units matched by PATTERN. So potentially we can collect all units (when not configured) by using a PATTERN that will match all units. (This will require a change on journald input operator side) Question is, do we want to collect all units by default when units are not configured in values.yaml There can be many service units enabled and might not all be that useful to the user? Eg: The reason we are not collecting all by default is, it creates lot of noise, and hence we started this PR with Here are the options I think we have:
I know we are trying to have the best possible version of journald data collection with more flexibility and controlled filtering, but if something seems not reasonable or not user friendly, we can always update it to go with the best possible approach based on the feedback we receive from the users or community? Please let me know what you think and which option seems reasonable as of now? Thank you! |
Thanks for providing the detailed answer.
As a user, I don't really like this solution. I always want to know which service my logs are coming from. And I'm sure this would be expected behavior from other users.
I think for now we should go this route and completely remove an option to specify all units. Once we have a solution on the operator side as use suggested (3), we can add the all units option back, but still probably not as a default behavior since you mentioned that it's noisy. Probably we don't even need to approach the all units option (3) until there is an ask for that from users. What do you think? |
Sounds good to me, we can have all units option if/ when there is an ask. |
@dmitryax Updated the PR back to have units configured by default, and disable journald by default in the config. |
Co-authored-by: Dmitrii Anoshin <[email protected]>
@dmitryax updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me! Just one last question
helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks!
Added journald configuration under otel logs collection.