# How to get kubernetes metadata with Elastic APM?

**URL:** <https://discuss.elastic.co/t/how-to-get-kubernetes-metadata-with-elastic-apm/242865>\
**Category:** APM\
**Tags:** docker, java\
**Created:** [July 28, 2020, 8:58am UTC](https://discuss.elastic.co/t/how-to-get-kubernetes-metadata-with-elastic-apm/242865 "2020-07-28T08:58:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ingram\_Gultom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ingram_gultom/32/56569_2.png) [@Ingram\_Gultom](https://discuss.elastic.co/u/Ingram_Gultom)\
**Post date:** [July 28, 2020, 8:58am UTC](https://discuss.elastic.co/t/how-to-get-kubernetes-metadata-with-elastic-apm/242865/1 "2020-07-28T08:58:03Z")

</div>

Hi all,

**Kibana version** : 7.7.1  
**Elasticsearch version** : 7.7.1  
**APM Server version** : 7.7.1  
**APM Agent language and version** : Java, 1.17.0

I have set up an elasticsearch, kibana and apm server in a VM , and an spring-boot-application with the apm java agent in openshift 3.11. My APM dahsboard already working perfectly but when I read the document I cannot find kubernetes metadata. I only find kubernetes.pod.name and kubernetes.pod.uid.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca55671fad9ac7f96fb80a17099cdbad29f3a10f.png)

How can I get all kubernetes metadata from with elastic APM? especially kubernetes.namespace? [https://www.elastic.co/guide/en/apm/server/master/exported-fields-kubernetes-processor.html](https://www.elastic.co/guide/en/apm/server/master/exported-fields-kubernetes-processor.html)

Thank you

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [July 28, 2020, 9:16am UTC](https://discuss.elastic.co/t/how-to-get-kubernetes-metadata-with-elastic-apm/242865/2 "2020-07-28T09:16:18Z")

</div>

Hi and thanks for your question.

Check out this guide: [https://www.elastic.co/guide/en/apm/server/master/metadata-api.html#kubernetes-data](https://www.elastic.co/guide/en/apm/server/master/metadata-api.html#kubernetes-data)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 5, 2020, 2:27am UTC](https://discuss.elastic.co/t/how-to-get-kubernetes-metadata-with-elastic-apm/242865/4 "2020-09-05T02:27:06Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
