# Do we have any metrics and limits for pods request?

**URL:** <https://community.dynatrace.com/t/do-we-have-any-metrics-and-limits-for-pods-request/19653>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [June 24, 2020, 3:25pm UTC](https://community.dynatrace.com/t/do-we-have-any-metrics-and-limits-for-pods-request/19653 "2020-06-24T15:25:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shammub599](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@shammub599](https://community.dynatrace.com/u/shammub599)\
**Post date:** [June 24, 2020, 3:25pm UTC](https://community.dynatrace.com/t/do-we-have-any-metrics-and-limits-for-pods-request/19653/1 "2020-06-24T15:25:51Z")

</div>

Do we have any metrics for pods request and limits like basically if pod crosses memory limit it get restarts before it get restart can trigger alert if it crosses limit? Example:

resources:

requests:

memory: “100M”

cpu: “50m”

limits:

memory: “250M”

cpu: “100m”

can these values get populated via manifest to dynatrace rather manually setting up threshold?

---

<div class="post-metadata">

**Author:** ![alexandre\_marl2](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@alexandre\_marl2](https://community.dynatrace.com/u/alexandre_marl2)\
**Post date:** [June 24, 2020, 6:24pm UTC](https://community.dynatrace.com/t/do-we-have-any-metrics-and-limits-for-pods-request/19653/2 "2020-06-24T18:24:21Z")

</div>

Hello,

It would be nice to have for each pod the limit/request configured for this pod and the current value (so we know if we are close or not of the limit).

Currently we have it at cluster level but you need to do the same for namespace and pod like other competitors.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![mbrunell](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mbrunell](https://community.dynatrace.com/u/mbrunell)\
**Post date:** [October 28, 2020, 12:21am UTC](https://community.dynatrace.com/t/do-we-have-any-metrics-and-limits-for-pods-request/19653/3 "2020-10-28T00:21:58Z")

</div>

I agree that this would be a nice improvement

These kind of metrics are available with other monitoring tools, but not currently available with Dynatrace as far as I am aware of

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [October 28, 2020, 1:25am UTC](https://community.dynatrace.com/t/do-we-have-any-metrics-and-limits-for-pods-request/19653/4 "2020-10-28T01:25:17Z")

</div>

Such metrics Already exists:

 ![27027-1603848294151.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/9/39ca94f2078b329222774dacf06dc7ff328f132a.png)

Cheers.

---

<div class="post-metadata">

**Author:** ![NIIIICK](https://avatars.discourse-cdn.com/v4/letter/n/e19adc/32.png) [@NIIIICK](https://community.dynatrace.com/u/NIIIICK)\
**Post date:** [August 17, 2021, 12:04pm UTC](https://community.dynatrace.com/t/do-we-have-any-metrics-and-limits-for-pods-request/19653/5 "2021-08-17T12:04:37Z")

</div>

Can these metrics be utillized for docker swarm containers?

---

<div class="post-metadata">

**Author:** ![Gogi](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@Gogi](https://community.dynatrace.com/u/Gogi)\
**Post date:** [August 30, 2022, 8:14am UTC](https://community.dynatrace.com/t/do-we-have-any-metrics-and-limits-for-pods-request/19653/6 "2022-08-30T08:14:12Z")

</div>

I want to configure custom alerts for POD cpu utilization using “cpu usage mcores”

builtin:containers.cpu.usageMilliCores

I navigated to particluar pod, Utilization section and able to generate this query  
builtin:containers.cpu.usageMilliCores:filter(in(“dt.entity.container\_group\_instance”,entitySelector(“type(CONTAINER\_GROUP\_INSTANCE),fromRelationships.IS\_CGI\_OF\_CAI(type(CLOUD\_APPLICATION\_INSTANCE),type(CLOUD\_APPLICATION\_INSTANCE),entityId(CLOUD\_APPLICATION\_INSTANCE-10BE51C9BB6E85A4))”))):parents:splitBy(“dt.entity.cloud\_application\_instance”):sum

but I need some generic query which should get applied to all pods in k8s cluster, please let me know whether its possible ?
