# Kubernetes metrics filter

**URL:** <https://community.dynatrace.com/t/kubernetes-metrics-filter/38897>\
**Category:** Container platforms\
**Tags:** dynatrace-managed, kubernetes\
**Created:** [March 20, 2023, 8:59am UTC](https://community.dynatrace.com/t/kubernetes-metrics-filter/38897 "2023-03-20T08:59:53Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [March 20, 2023, 8:59am UTC](https://community.dynatrace.com/t/kubernetes-metrics-filter/38897/1 "2023-03-20T08:59:53Z")

</div>

Hi Folks,

Is there any way or workaround to filter which rules the Kubernetes metric ingests similar to the event filtering when you connect to the Kubernetes API via AG? In some cases (eg. at app-only instrumentation with stateful set AG) there was huge DDU consumption.

 ![Mizs_0-1679302524487.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/ccffcfe20a1b57a83e52c120687e04b0705b9e20.png)

Thanks in advance for your answers.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 25, 2023, 6:53pm UTC](https://community.dynatrace.com/t/kubernetes-metrics-filter/38897/2 "2023-05-25T18:53:28Z")

</div>

[@Mizső](https://community.dynatrace.com/user/47783)&nbsp;you should be able to do this via API. we formulated an API posting so when clusters are spun up the URL and token is passed into a payload and posted into Dynatrace which also has out metric definitions defined out. So there is no over consumption that we were not expecting.
