elastic / elastic/apm-server

Kubernetes metadata enrichment

Open
#7,161 1 comment 0 reactions 0 assignees View on GitHub
research
Dominant language
Go
Stars
1.3k
Forks
543
Avg merge
1d 18h
Merged PRs (30d)
109

Description

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:
- can we use https://www.elastic.co/guide/en/fleet/master/kubernetes-provider.html?
- should we do the mapping in APM Server, or would it be better to store the Kubernetes topology in Elasticsearch independently, and join at query time?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.