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

Kubernetes metadata enrichment #7161

Open
axw opened this issue Feb 2, 2022 · 1 comment
Open

Kubernetes metadata enrichment #7161

axw opened this issue Feb 2, 2022 · 1 comment
Labels

Comments

@axw
Copy link
Member

axw commented Feb 2, 2022

When running instrumented applications within a Kuberentes environment, our agents will extract a limited amount of Kubernetes pod/node metadata from cgroup info: https://github.com/elastic/apm/blob/main/specs/agents/metadata.md#containerkubernetes-metadata

It may be useful to enrich this information with additional details that can only be obtained by communicating with the Kubernetes API Server, e.g. the Kubernetes service name, and labels/annotations.

Things to research:

@axw
Copy link
Member Author

axw commented Nov 27, 2023

Another thing to consider would be to use a mutating admission controller to inject KUBERNETES_* environment variables. This could be a custom webhook, or it could be a published Kyverno mutate policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants