# Exclude workloads from being monitored in Kubernetes

**URL:** <https://community.dynatrace.com/t/exclude-workloads-from-being-monitored-in-kubernetes/50472>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [February 26, 2025, 11:40am UTC](https://community.dynatrace.com/t/exclude-workloads-from-being-monitored-in-kubernetes/50472 "2025-02-26T11:40:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathanieltat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nathanieltat/32/17660_2.png) [@Nathanieltat](https://community.dynatrace.com/u/Nathanieltat)\
**Post date:** [February 26, 2025, 11:40am UTC](https://community.dynatrace.com/t/exclude-workloads-from-being-monitored-in-kubernetes/50472/1 "2025-02-26T11:40:45Z")

</div>

We have been trying to figure out how to exclude workloads and all subsequent pods within that workload in&nbsp;Kubernetes&nbsp;from being monitored in dynatrace, we can exclude pods and namespaces but not the workloads, e.g. trying to exclude the&nbsp;jaeger-production-collector workload as its not needed to be monitored.

 ![Workloads.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/f/7fbf5563d85cff6373a8c7178dc72b5b2b944c76.png)

---

<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:** [February 27, 2025, 6:19am UTC](https://community.dynatrace.com/t/exclude-workloads-from-being-monitored-in-kubernetes/50472/2 "2025-02-27T06:19:53Z")

</div>

Hi&nbsp;[@Nathanieltat](https://community.dynatrace.com/user/86469)

Try this, maybe help.

I thnik you have many options with Maintenance Windows.

 ![Mizs_1-1740635896666.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/2/22c48ff12b07fff485e87854c3619090de423dc6.png)

 ![Mizs_0-1740635745632.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/b/5bd21ee1da0b103cbb7550a021a498733a780340.png)

1. You can chose a specific workload by entity id. You can easily find it in the browser.

 ![Mizs_2-1740636079608.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/6/364e4d8fe7ad236264fd85b987dbd1a0bbf22ea4.png)

2. Better solution that you can chose a tag for filter the manintenance windows entities. So you just need to apply one tag for those workloads which should not be the scope of the monitoring.

 ![Mizs_5-1740637175180.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/c/ac73123cc4233f2e34822320f2881b72f696e098.png)

3. Create a Management zone for excluding workloads form monitoring and use it at the Maintenenace windows.

These rules can be use for creating MZ:

![Mizs_3-1740636831372.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/ca0a16ec984bae6d0f32f4fcd01c08ff7b6f71f9.png)

Or combine the tags and MZ in the MZ riule:

![Mizs_4-1740636975918.png](https://global.discourse-cdn.com/dynatrace/original/1X/14899f38cd3b59a1ed267e274167fbdbccf62235.png)

I hope it helps.

Best regards,

János

---

<div class="post-metadata">

**Author:** ![Nathanieltat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nathanieltat/32/17660_2.png) [@Nathanieltat](https://community.dynatrace.com/u/Nathanieltat)\
**Post date:** [March 10, 2025, 9:11am UTC](https://community.dynatrace.com/t/exclude-workloads-from-being-monitored-in-kubernetes/50472/3 "2025-03-10T09:11:28Z")

</div>

Thank you, yes we tagged them with a (Monitor not needed) and selected a maintenance window for all items with that tag so it wouldn’t alert and it has worked.

---

<div class="post-metadata">

**Author:** ![Theodore\_x86](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theodore_x86/32/17620_2.png) [@Theodore\_x86](https://community.dynatrace.com/u/Theodore_x86)\
**Post date:** [November 13, 2025, 12:26pm UTC](https://community.dynatrace.com/t/exclude-workloads-from-being-monitored-in-kubernetes/50472/4 "2025-11-13T12:26:03Z")

</div>

Hello.

Can’t you just annotate the pods defined on workload manifest with:

[oneagent.dynatrace.com/inject:](http://oneagent.dynatrace.com/inject:) “false” ?

BR
