# Why can't metric UI use apm metric data?

**URL:** <https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290>\
**Category:** Elastic Observability\
**Created:** [October 9, 2021, 2:02am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290 "2021-10-09T02:02:29Z")\
**Posts on this page:** 9\
**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:** [October 9, 2021, 2:02am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/1 "2021-10-09T02:02:29Z")

</div>

```auto
I did not deploy metricbeat. I saw that the apm agent collects some basic indicators (CPU, memory) of the system, I set the Metrics indices to "apm-*-metric-*", but the page did not show the results.
Is there something wrong with my operation?

```

![record](https://us1.discourse-cdn.com/elastic/original/3X/c/9/c98b2ca1824f2601a580f95acd728451dd9dac54.gif)

ver: 7.12.0

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 10, 2021, 12:21am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/2 "2021-10-10T00:21:12Z")

</div>

Hi @wajika

The metrics from the apm agent are not showing up in the pod metrics inventory because the kubernetes metrics are pulled from the metricbeat / agent and use a specific namespace for the pod metrics. See [Here](https://www.elastic.co/guide/en/observability/current/kubernetes-pod-metrics.html)

Also did you actually create the `apm-*` index pattern it is not created for you.

> Example
> 
> | **CPU Usage** | Average of `kubernetes.pod.cpu.usage.node.pct` . |
> | --- | --- |
> | **Memory Usage** | Average of `kubernetes.pod.memory.usage.node.pct` . |
> | **Inbound Traffic** | Derivative of the maximum of `kubernetes.pod.network.rx.bytes` scaled to a 1 second rate. |
> | **Outbound Traffic** | Derivative of the maximum of `kubernetes.pod.network.tx.bytes` scaled to a 1 second rate. |

You can look at the metrics you are interested in the Metrics Explorer though or in Lens.

Example you can see the Metrics From the Java APM Agent [Here](https://www.elastic.co/guide/en/apm/agent/java/current/metrics.html).

> Example
> 
> ### System metrics
> 
> Host metrics. As of version 6.6, these metrics will be visualized in the APM app.
> 
> For more system metrics, consider installing [metricbeat](https://www.elastic.co/guide/en/beats/metricbeat/7.15/index.html) on your hosts.
> 
> **`system.cpu.total.norm.pct`**
> 
> type: scaled\_float
> 
> format: percent
> 
> The percentage of CPU time in states other than Idle and IOWait, normalised by the number of cores.
> 
> **`system.process.cpu.total.norm.pct`**
> 
> type: scaled\_float

Or JVM

> ### JVM Metrics
> 
> JVM-specific metrics
> 
> **`jvm.memory.heap.used`**
> 
> type: long
> 
> format: bytes
> 
> The amount of used heap memory in bytes

So if you Go To Metrics Explorer You can see them there

 ![Screen Shot 2021-10-09 at 5.19.47 PM](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a54fbc46c80d1427b6a2e47fa8e712dd7d19f110.jpeg)

Here is what it looks like in Lens (this is 7.15 so a bit newer but you should be able to do this in 7.12)

 ![Screen Shot 2021-10-09 at 5.16.45 PM](https://us1.discourse-cdn.com/elastic/original/3X/9/3/936c77254b1750b269ca7cdc2234c8390e6cb60d.jpeg)

Hope This Helps!

---

<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:** [October 10, 2021, 1:24am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/3 "2021-10-10T01:24:36Z")

</div>

I found results in Metrics Explorer.

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/1/8/187a8c936311863e9b8a78248da102bb38b16609.png)  
 ![2](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d9a6a4cf117a6fb8713d565d6c8d0536bc787897.png)  
 ![3](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e16b2ee4d14244949f24a4b2182c418bd51321d.png)

The kubernetes.pod.\* fields must be generated by metricbeat.  
We will not deploy metricbeat for the time being. I don’t need much data.  
Do you plan to add service performance indicators(cpu usage and memory usage) to apm metric?

 ![44](https://us1.discourse-cdn.com/elastic/original/3X/b/c/bc184cb9169cddff718bea1995ac1228486f5f06.png)  
If there are cpu usage and memory usage data, then apm metric page data can be more abundant.

---

<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:** [October 10, 2021, 2:24am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/4 "2021-10-10T02:24:41Z")

</div>

![5](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b918b8f4665a42b660f8252593262ea589118133.png)  
Why are there cpu usage and memory usage in the service map? But I didn’t find it on the apm metric page.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 10, 2021, 3:59am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/5 "2021-10-10T03:59:54Z")

</div>

> [@wajika](#):
>
> Why are there cpu usage and memory usage in the service map? But I didn’t find it on the apm metric page.

> [@wajika](#):
>
> ![44](https://us1.discourse-cdn.com/elastic/original/3X/b/c/bc184cb9169cddff718bea1995ac1228486f5f06.png)

I am confused on the image / post before you showed the picture of CPU and Memory on the APM Metrics page, so I am unclear what you are asking.

Looks like you are using .NET Here are the list of collected metrics

> **[Metrics | APM .NET Agent Reference \[1.x\] | Elastic](https://www.elastic.co/guide/en/apm/agent/dotnet/current/metrics.html)**

If you would like additional metrics on the APM Metrics Page please open a feature request, this seems like a good request. (I am more Java Centric and there are a lot more metrics on that screen)

In the meantime you can create a dashboards with lens visualizations with any of the .NET metrics available.

---

<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:** [October 10, 2021, 5:30am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/6 "2021-10-10T05:30:29Z")

</div>

I mean, since there are cpu usage and memory usage data on the service map page, why can’t it be displayed on the apm metrics page? Which is the position of the red frame in the picture.

Similar to the picture:

 ![123](https://us1.discourse-cdn.com/elastic/original/3X/0/3/03e05e07724c42609ba0f04efeb96a5dc9342804.png)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 10, 2021, 5:57am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/7 "2021-10-10T05:57:48Z")

</div>

Apologies but I am still unclear.

Are you concerned that the label "CPU Usage" does not show up in the legend or the overall single Average metric over the entire timespan is not on the metrics page?

On the service map It's a single aggregate value over the time range of the service map like you show the Avg CPU over 24 hours.

On the metrics page it's time series data, Not a single average of the entire time frame.

The "Why" Is that it is just not implemented that way today, and that's why I suggest that you open a feature request describing exactly what you like to see.

Here is the repo.

> **[GitHub - elastic/apm: Elastic Application Performance Monitoring - resources...](https://github.com/elastic/apm)**
>
> Elastic Application Performance Monitoring - resources and general issue tracking for Elastic APM. - GitHub - elastic/apm: Elastic Application Performance Monitoring - resources and general issue t...

---

<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:** [October 11, 2021, 3:51am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/8 "2021-10-11T03:51:58Z")

</div>

Uh, okay.  
Thank you for your reply.

---

<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:** [November 4, 2022, 8:32am UTC](https://discuss.elastic.co/t/why-cant-metric-ui-use-apm-metric-data/286290/9 "2022-11-04T08:32:38Z")

</div>


