-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 container parser blog post #4489
Add container parser blog post #4489
Conversation
4da29cf
to
d08fbe5
Compare
97da040
to
47528d1
Compare
@open-telemetry/collector-approvers please take a look as well, thx! |
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
ad5c294
to
24a1f28
Compare
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
9f7ee5b
to
83a055c
Compare
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.
Just a language edit. Nice post and feature!
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
operators together. The end result is rather complex, and this configuration | ||
complexity can be mitigated by using the corresponding | ||
[helm chart preset](https://github.com/open-telemetry/opentelemetry-helm-charts/tree/main/charts/opentelemetry-collector#configuration-for-kubernetes-container-logs). | ||
However, despite having the preset, it can still be challenging for users to | ||
maintain and troubleshoot such advanced configurations. |
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.
operators together. The end result is rather complex, and this configuration | |
complexity can be mitigated by using the corresponding | |
[helm chart preset](https://github.com/open-telemetry/opentelemetry-helm-charts/tree/main/charts/opentelemetry-collector#configuration-for-kubernetes-container-logs). | |
However, despite having the preset, it can still be challenging for users to | |
maintain and troubleshoot such advanced configurations. | |
operators together. The end result is rather complex. This configuration | |
complexity can be mitigated by using the corresponding | |
[helm chart preset](https://github.com/open-telemetry/opentelemetry-helm-charts/tree/main/charts/opentelemetry-collector#configuration-for-kubernetes-container-logs). | |
However, despite having the preset, it can still be challenging for users to | |
maintain and troubleshoot such advanced configurations. |
Style nit: In some parts you use first person plural ("we"), in others you switch to passive voice ("it can be..."). I recommend to select a single voice and stick to it, preferably second person, which is more engaging ("You can...").
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
In order to implement that parser operator most of the code was written from | ||
scratch, but we were able to re-use the recombine operator internally for the | ||
partial logs parsing. In order to achieve this some small refactoring was | ||
required but this gave us the opportunity to re-use an already existent and well | ||
tested component. |
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.
You can remove most of the "In order"s.
required but this gave us the opportunity to re-use an already existent and well | ||
tested component. | ||
|
||
Additionally, during the discussions around the implementation of this feature, |
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.
Similarly, you can remove most of the opening adverbs. It'll flow better.
content/en/blog/2024/otel-collector-container-log-parser/index.md
Outdated
Show resolved
Hide resolved
ff3a2a4
to
f0033ce
Compare
operators: | ||
- id: container-parser | ||
type: container | ||
``` |
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.
How about showing the comparison to the config previously (with the container parser) required (that you mention in the issue above: open-telemetry/opentelemetry-collector-contrib#31959)?
Or at least mention that the config now is 8 lines long vs. ~80 lines to achieve the same result.
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.
Good point! Added at 44778bd, thank's.
44778bd
to
aec5a1b
Compare
@svrnm @theletterf thank's for the feedback. I have tried to address your comments. Feel free to take another look. |
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
aec5a1b
to
db56d91
Compare
This PR adds a blog post about the new
filelogreceiver
's container parser which was introduced with open-telemetry/opentelemetry-collector-contrib#31959./cc @djaglowski
Preview: https://deploy-preview-4489--opentelemetry.netlify.app/blog/2024/otel-collector-container-log-parser/