# Monitor Percentage of PODs in Namespace

**URL:** <https://community.dynatrace.com/t/monitor-percentage-of-pods-in-namespace/31228>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [April 22, 2021, 1:29pm UTC](https://community.dynatrace.com/t/monitor-percentage-of-pods-in-namespace/31228 "2021-04-22T13:29:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![serhat\_balik](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@serhat\_balik](https://community.dynatrace.com/u/serhat_balik)\
**Post date:** [April 22, 2021, 1:29pm UTC](https://community.dynatrace.com/t/monitor-percentage-of-pods-in-namespace/31228/1 "2021-04-22T13:29:44Z")

</div>

We would like to only monitor 50% of PODs in our Kubernetes test environment where there are multiple provisonings happening in a single day. I know that we can disable POD/Container monitoring from the settings menu by namespace, name or ID, but this is static.

Is there a way to dynamically configure Dynatrace only to monitor a percentage of PODs in a given time? I’ve checked API documentation but I’ve only seen monitoring configuration on a host basis.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [April 22, 2021, 1:45pm UTC](https://community.dynatrace.com/t/monitor-percentage-of-pods-in-namespace/31228/2 "2021-04-22T13:45:34Z")

</div>

No, it is not possible to tell dynatrace to monitor only a certain percentage of pods.

If it’s a multi node cluster you could use a selector in the operator to roll out the agent only to 50% of your worker nodes though.

---

<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:** [July 4, 2022, 2:23pm UTC](https://community.dynatrace.com/t/monitor-percentage-of-pods-in-namespace/31228/3 "2022-07-04T14:23:56Z")

</div>

Hi Pahofmann,

Please can you tell me where is the option in Dynatrace UI to select particular worker node to roll out agent.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [July 5, 2022, 7:22am UTC](https://community.dynatrace.com/t/monitor-percentage-of-pods-in-namespace/31228/4 "2022-07-05T07:22:17Z")

</div>

In the meantime there are more options to control instrumentation on k8s e.g. by namespace.&nbsp;You can use&nbsp;[container monitoring rules](https://www.dynatrace.com/support/help/shortlink/container-monitor-hub#define-container-monitoring-rules).

Depending on how you rollout the agent there are also different options. [With the operator](https://www.dynatrace.com/support/help/shortlink/dto-params-k8s) you can use&nbsp;_namespaceSelector_&nbsp;or&nbsp;_nodeSelector_, depending on the monitoring mode, you can select specific namespaces or nodes wo monitor.
