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

K8sattributes unable to enrich pod,node, namespace labels and annotations in logs #34601

Open
Praveen2099 opened this issue Aug 12, 2024 · 6 comments

Comments

@Praveen2099
Copy link

Component(s)

receiver/filelog

What happened?

Description

I have gone through different regex and other documents to enrich labels and annotations in the logs.so i want otel collector configuration to get all labels and annotations of pods ,nodes and namespace.

Steps to Reproduce

Expected Result

Actual Result

Collector version

0.106.1

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@Praveen2099 Praveen2099 added bug Something isn't working needs triage New item requiring triage labels Aug 12, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@Praveen2099
Copy link
Author

I have checked this doc but not working for me.
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/k8sattributesprocessor/README.md

.
So please give me the configurations how to do this

@ChrsMark ChrsMark added the processor/k8sattributes k8s Attributes processor label Aug 12, 2024
Copy link
Contributor

Pinging code owners for processor/k8sattributes: @dmitryax @rmfitzpatrick @fatsheep9146 @TylerHelmuth. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@ChrsMark ChrsMark removed the bug Something isn't working label Aug 12, 2024
@Praveen2099
Copy link
Author

While deployed as Deployment it is working.

But while deployed as Daemon set it is not working k8s annotations labels not enriching

@ChrsMark
Copy link
Member

Hey @Praveen2099. The component that adds the labels and annotations is the k8sattrbiutesprocessor, so I have marked this issue accordingly.

In addition, you will need to share the details about the issue you are facing.

  • How exactly do you deploy the Collector? Are you using the Helm charts or you use your own manifests? Please provide the details.
  • Please provide the full configuration of the Collector.
  • Describe what you see compared to what you expect to see here.

Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants