title: Elastic: How to enable autodetect on metadata like container id in Elastic APM Agent/APM Server?
body: <p>I have set up an elastic stack with elasticsearch, filebeat, kibana and apm server, and an spring-boot-application with the apm java agent and started my setup in a docker compose file. I have enabled the dashboard and I can see traces about processes in the application.
  But I cannot filter for container id, because there is no id. How do I enable my stack apm server/apm agent to receive the metadata about container id, pod id and so on.</p>
  
  <p>Where can I enable metadata for apm server / apm agent to receive the container id for instance.</p>