# Infrastructure tab in the APM UI/App

**URL:** <https://discuss.elastic.co/t/infrastructure-tab-in-the-apm-ui-app/323577>\
**Category:** Elastic Observability\
**Created:** [January 20, 2023, 9:47am UTC](https://discuss.elastic.co/t/infrastructure-tab-in-the-apm-ui-app/323577 "2023-01-20T09:47:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marsdea](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@marsdea](https://discuss.elastic.co/u/marsdea)\
**Post date:** [January 20, 2023, 9:47am UTC](https://discuss.elastic.co/t/infrastructure-tab-in-the-apm-ui-app/323577/1 "2023-01-20T09:47:26Z")

</div>

Hi there,

Anyone know what the 'key' is to correlate infrastructure metrics with APM agent metrics so they appear in the infrastructure tab in the APM UI?

I am not seeing any infra metrics for an APM service but I know that we definitely have them in elasticsearch from the Elastic Agent running on the server that the JVM is hosted on.

host.hostname field is common across both APM and EA documents but interestingly in the APM data it is uppercase and in the EA data it is lowercase. Not sure if this could be the issue though.

Thanks.

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

---

<div class="post-metadata">

**Author:** ![gbamparop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gbamparop/32/95936_2.png) [@gbamparop](https://discuss.elastic.co/u/gbamparop)\
**Post date:** [January 23, 2023, 4:27pm UTC](https://discuss.elastic.co/t/infrastructure-tab-in-the-apm-ui-app/323577/2 "2023-01-23T16:27:54Z")

</div>

Hi Andrew,

The infrastructure metrics table in the APM UI is populated by infrastructure data filtered by the following fields:

- **Pods** : `kubernetes.pod.name` from the APM [metrics data streams](https://www.elastic.co/guide/en/apm/guide/current/data-model-metrics.html).

- **Containers** : `container.id` from the APM metrics data streams.

- **Hosts** : If the application is containerized (if the APM metrics documents include `container.id`), `host.name` is used from the infrastructure data streams (filtered by `container.id`). If not, `host.hostname` is used from the APM metrics data streams.

Thanks,  
Giorgos

---

<div class="post-metadata">

**Author:** ![marsdea](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@marsdea](https://discuss.elastic.co/u/marsdea)\
**Post date:** [January 24, 2023, 10:56am UTC](https://discuss.elastic.co/t/infrastructure-tab-in-the-apm-ui-app/323577/3 "2023-01-24T10:56:19Z")

</div>

Thanks Giorgos.

Really useful information. So one thing, for my non-containerized app I am not seeing any data in the infrastructure tab. Interestingly the host.hostname field for the APM data stream is lowercase. It is uppercase for the infrastructure data. Host name is the same!

Could this be an issue do you think?

Thanks.

---

<div class="post-metadata">

**Author:** ![gbamparop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gbamparop/32/95936_2.png) [@gbamparop](https://discuss.elastic.co/u/gbamparop)\
**Post date:** [February 2, 2023, 10:29am UTC](https://discuss.elastic.co/t/infrastructure-tab-in-the-apm-ui-app/323577/4 "2023-02-02T10:29:05Z")

</div>

Hello,

Does the `host.hostname` field value in the APM data match the `host.name` field value in infrastructure data?

Thanks,  
Giorgos

---

<div class="post-metadata">

**Author:** ![marsdea](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@marsdea](https://discuss.elastic.co/u/marsdea)\
**Post date:** [February 6, 2023, 2:28pm UTC](https://discuss.elastic.co/t/infrastructure-tab-in-the-apm-ui-app/323577/5 "2023-02-06T14:28:07Z")

</div>

Hi Giorgos,

They match in that it's the same server - but the APM data is is uppercase and the Inf data is lowercase. Not sure if that matters here or not though.

Thanks!

---

<div class="post-metadata">

**Author:** ![gbamparop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gbamparop/32/95936_2.png) [@gbamparop](https://discuss.elastic.co/u/gbamparop)\
**Post date:** [February 7, 2023, 2:54pm UTC](https://discuss.elastic.co/t/infrastructure-tab-in-the-apm-ui-app/323577/6 "2023-02-07T14:54:32Z")

</div>

Hello,

The current queries used to correlate APM and infrastructure data are case sensitive.

It would be great to understand what does your setup look like to identify the reason of the difference in the host names.

Thanks,  
Giorgos
