-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Enable k8s log collection in Otel Helm Chart. #2536
Enable k8s log collection in Otel Helm Chart. #2536
Comments
@pmm-sumo @sumo-drosiek @rockb1017 please decide who is running this and whether you will want to split this into separate tasks for several people to contribute. |
I am happy to cooperate but I will only have availability around next week. I don't want to be hindering the progress. Maybe I should take perf test task? |
No worries. :-) @rockb1017 I think it's fine if you start it and then when @sumo-drosiek comes back from sick leave (hopefully early next week) you could cooperate. We need to enable filelog receiver and add some small improvements there before anyway (I am working on it right now) |
okay sure then, i will start on it later! |
With this commit (fb9660a) we should be fine with scraping k8s container logs I need to make more research around using journactl in otc to scrape systemd logs |
I started working on this with some help from @sumo-drosiek. Here's my branch in case anybody's interested (it's very much Work In Progress though) https://github.com/astencel-sumo/opentelemetry-helm-charts/commits/add-k8s-logs. |
oh cool. thanks for sharing your work! I have a general question. Should logging be in the same daemonset with traces and metrics or should it deploy another daemonset ? Reasons and benefits of splitting them are:
|
This is a very good question @rockb1017 Maybe @dashpole has some recommendations? |
I'm not very familiar with the current state of the helm chart, but i'd probably combine them, as long as the collector is being run as a daemonset. If it isn't, then you'd have to separate them. |
Thank you @dashpole! |
I will first implement it in combined method. maybe later we can separate them if needed. I have another question. |
When I try to build a custom image this commit (fb9660a), I get this error. Could someone help? |
Users need to apply different multiline concat configuration An example would be great. Thanks! |
@rockb1017 you can use main branch or |
I added this operator at
|
I used main branch to run |
@rockb1017 I suppose we should use otelcol processor for metadata enrichment. Thats why I didn't add it to the PR. WDYT? |
Oh i see, my mistake. Thank you for pointing that out! |
You mean this https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/k8sprocessor is there any reference of using the otelcol processor for metadata enrichment? |
I think a good start might be looking at the sample config.yaml. More details on the package docs site One caveat - the processor expects that attributes (such ad pod UID) are present on the |
Can i get some guide on this as well? |
@sumo-drosiek @pmm-sumo |
Each Pod update/create/delete event results in handling an event which actually updates the cache within the k8s processor Additionally, when ran as a DaemonSet, node filtering can be applied |
That's a good question. My feeling is we should aim at having one way achieve given goal. The |
I see one issue with using multiline: logs in container logs are with additional information like
the log file will have following content
So, because of that it would be nice to perform multiline detection after parsing log lines. I don't know if this is possible with current capabilities. I would focus on simple (no multiline, no merging splitting logs) but working solution for now and improve it in separate issues/PRs |
@sumo-drosiek |
BTW, we have a bummer on |
I am implementing k8s enrichment into pipeline.
but my pod fails with this message
can i get some help? |
When i disable enrichment and just try to send data to splunk, I am getting this error
Same thing when i try
When i do curl from the same node, it works
|
anyways, here is my progress so far. couldn't get it to successfully ingest to splunk. |
Folks, here's my update on open-telemetry/opentelemetry-helm-charts#36:
Please comment on the PR. I can see @rockb1017 has created a similar PR open-telemetry/opentelemetry-helm-charts#38, trying to achieve the same goal in a very similar way. Probably best to focus on only one of these and try to get the best of both solutions in a single effort, right? |
I agree. @rockb1017 if you have additional improvement suggestions please make them in open-telemetry/opentelemetry-helm-charts#36 or alternatively you can create a new PR on top of open-telemetry/opentelemetry-helm-charts#36 (the later is probably preferable to avoid delaying the first PR). |
oh i see. I will create PR on top of #36. |
Created a bug report on |
Folks, here's a document describing the performance tests that @sumo-drosiek and I have run for the Otel Helm chart: https://docs.google.com/document/d/1cEgAt5vBGzFZKooIIdQ3OHh9CEWBnVft_pmYVNlYAh4. Please comment on the document. I would like to chat about it in the next Log SIG's meeting (is this the correct SIG to talk about it?). |
Some requirements which I believe are important:
The text was updated successfully, but these errors were encountered: