# Kubernetes/OpenShift CPU Throttling - What is the best metric?

**URL:** <https://community.dynatrace.com/t/kubernetes-openshift-cpu-throttling-what-is-the-best-metric/41686>\
**Category:** Container platforms\
**Tags:** openshift, kubernetes\
**Created:** [September 18, 2023, 6:53pm UTC](https://community.dynatrace.com/t/kubernetes-openshift-cpu-throttling-what-is-the-best-metric/41686 "2023-09-18T18:53:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crabbylou](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@crabbylou](https://community.dynatrace.com/u/crabbylou)\
**Post date:** [September 18, 2023, 6:53pm UTC](https://community.dynatrace.com/t/kubernetes-openshift-cpu-throttling-what-is-the-best-metric/41686/1 "2023-09-18T18:53:16Z")

</div>

I am starting to grab more container-level statistics within Kubernetes/OpenShift. Someone mentioned to me about the importance of measuring CPU throttling. What is the best metric in DT for measuring CPU throttling?

I am already grabbing container CPU, millicores, millicores and maximum. Is there an actual statistic for the percentage or degree of throttling?

Any help would be appreciated.

Thanks,

Lou

---

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [September 18, 2023, 7:28pm UTC](https://community.dynatrace.com/t/kubernetes-openshift-cpu-throttling-what-is-the-best-metric/41686/2 "2023-09-18T19:28:41Z")

</div>

Yes exist, the metric is literally CPU throttling haha

“The CPU throttling metric tells you how long the application was throttled, so you can determine where more CPU time would have been needed for processing. This usually happens when the containers don’t have enough CPU resources (limits) in the workload definition. This might affect the performance of the processes and applications running inside the containers.”

Take a look on this documentation page

> **[Monitor Kubernetes/OpenShift workloads](https://docs.dynatrace.com/docs/observe/infrastructure-observability/container-platform-monitoring/kubernetes-monitoring/monitor-workloads-kubernetes)**
>
> Enable Kubernetes/OpenShift workloads integration for Dynatrace monitoring.

You can also see the number of running pods versus desired pods for every cloud application.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [September 19, 2023, 9:39pm UTC](https://community.dynatrace.com/t/kubernetes-openshift-cpu-throttling-what-is-the-best-metric/41686/3 "2023-09-19T21:39:27Z")

</div>

Hi&nbsp;[@crabbylou](https://community.dynatrace.com/user/66964),

I usually use these ones at clinets:

(&nbsp; builtin:containers.cpu.throttledMilliCores:avg:parents:parents:splitBy(“dt.entity.cloud\_application\_instance”,“dt.entity.cloud\_application”):sum

/ builtin:containers.cpu.usageMilliCores:avg:parents:parents:splitBy(“dt.entity.cloud\_application\_instance”,“dt.entity.cloud\_application”):sum

\* 100

)

:splitBy(“dt.entity.cloud\_application\_instance”,“dt.entity.cloud\_application”)

:setUnit(Percent)

:sort(value(avg,descending))

:limit(5)

 ![Mizs_0-1695159298930.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/f/af65cee03a00992e9e54bb92d7f594419ad4790b.png)

 ![Mizs_1-1695159358784.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/e/3e705bacf20822102fc9c4792cd1c4b1086cd72e.png)

or

builtin:containers.cpu.throttledMilliCores

:filter(series(avg,gt,10))

:parents:parents:splitBy(“dt.entity.cloud\_application\_instance”,“dt.entity.cloud\_application”)

:avg

:auto

:sort(value(avg,descending))

:limit(5)

 ![Mizs_5-1695159652187.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/9/f92151bd98f5fb9a5df5cad0d25e16afa81a8d78.png)

 ![Mizs_6-1695159704496.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/145547558ea7ef6a1ad798c559699a64af12d314.png)

I hope it helps.

Best regards,

Mizső
