# Can dotnet agent obtain kubernetes fields?

**URL:** <https://discuss.elastic.co/t/can-dotnet-agent-obtain-kubernetes-fields/245194>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [August 17, 2020, 8:25am UTC](https://discuss.elastic.co/t/can-dotnet-agent-obtain-kubernetes-fields/245194 "2020-08-17T08:25:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [August 17, 2020, 8:25am UTC](https://discuss.elastic.co/t/can-dotnet-agent-obtain-kubernetes-fields/245194/1 "2020-08-17T08:25:29Z")

</div>

version: 7.8.1

I used dotnet agent. I found that kubernetes fields were missing, but I didn't know what was going on.  
I've added kubernetes metadata.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/1/11d28e49554cc07c3e877a89ab056c3aee3fc5f3.png)

I opened trace and found that kubernetes pod uid had been generated.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4c5c0b76338232a6861023023354f850b9a9e5e4.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/8/881251b5b78486c1bb7414c5d134a78dab7f6bbc.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/2/3262283fc312c86bcf859632f6b4b43ddf6d0d54.png)

I take a java program. After installing the agent, there is a kubernetes pod uid.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b52255243516e75e50ed16723dd0066c86182cd6.png)

---

<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 7, 2020, 4:25am UTC](https://discuss.elastic.co/t/can-dotnet-agent-obtain-kubernetes-fields/245194/2 "2020-09-07T04:25:29Z")

</div>

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