# Disable Oneagent Monitoring for Kubernetes Cluster

**URL:** <https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [September 15, 2023, 4:16am UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655 "2023-09-15T04:16:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![agylpradipta](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agylpradipta/32/15511_2.png) [@agylpradipta](https://community.dynatrace.com/u/agylpradipta)\
**Post date:** [September 15, 2023, 4:16am UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/1 "2023-09-15T04:16:49Z")

</div>

Hello All,

Currently I’m testing Dynatrace on my dev environment.

I want to temporary disable the oneagent monitoring for it so it will not consume license.

Is there any way to disable monitoring on node of kubernetes cluster instead of manually disable it one by one?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![mizso74](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [September 15, 2023, 5:05am UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/2 "2023-09-15T05:05:52Z")

</div>

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

I thnik you should try the combination of Monitored entities and Settings objects API.

 ![Mizs_0-1694754000167.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a9929be316690dfae2e8ef930f607ffa7681ad8d.png)

Enable/Disable by settings objects API:

 ![Mizs_1-1694754325210.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/d/0d3f301bc50ed93ac8021b45ab85ee4a315d28d3.png)

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Gabor](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Gabor](https://community.dynatrace.com/u/Gabor)\
**Post date:** [December 17, 2024, 2:16pm UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/3 "2024-12-17T14:16:26Z")

</div>

Hi Mizső,

Is this the same as if I disable it in the kubernetes menu, when I select a cluster and in the monitoring settings I disable the monitoring?

My problem is I have to somehow disable monitoring to not only save DDUs but free up Host units, without having access to AWS where our AWS EKS clusters are running. Is there any possibility to do that via the Dynatrace UI or Dynatrace API?

---

<div class="post-metadata">

**Author:** ![Gabor](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Gabor](https://community.dynatrace.com/u/Gabor)\
**Post date:** [May 6, 2025, 9:42am UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/4 "2025-05-06T09:42:51Z")

</div>

Update:

Host units are not freed up with disabling monitoring this way.

The solution for “dynamic” host unit license management on cloud is the container monitoring rules.

Container monitoring rules has to be created based on e.g. k8s namespaces this way it is possible to disable montoring on different / not needed namespaces saving host unit consumption without redeploying pods / operators etc.

---

<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:** [May 6, 2025, 12:55pm UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/5 "2025-05-06T12:55:56Z")

</div>

This is a quite important but I am not sure if it is feasible.

You can of course delete the dynakube file each time you want to disable OneAgents and recreate it but this is a process executed on the cluster and not on the Dynatrace.

Maybe this could be a new Idea. To add a Monitoring State button for K8S/Openshift clusters.

What do you think?

BR

---

<div class="post-metadata">

**Author:** ![mizso74](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [May 6, 2025, 1:18pm UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/6 "2025-05-06T13:18:59Z")

</div>

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

As far as I know container monitoring rules works only with FullStuckClassic operator mode.

Best regards,

János

---

<div class="post-metadata">

**Author:** ![Gabor](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Gabor](https://community.dynatrace.com/u/Gabor)\
**Post date:** [May 13, 2025, 7:33am UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/7 "2025-05-13T07:33:00Z")

</div>

Hi&nbsp;[@Mizső](https://community.dynatrace.com/user/47783)&nbsp;,

It is possible, We havent tried it out yet, I base my answer on a tip we recieved.

In the following months I will implement these rules for all of our clusters for all of our namespaces and do some testing with license consumption and get back with my results.

Best regards,  
Gabor

---

<div class="post-metadata">

**Author:** ![Michel-Vallee](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@Michel-Vallee](https://community.dynatrace.com/u/Michel-Vallee)\
**Post date:** [February 19, 2026, 1:55pm UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/8 "2026-02-19T13:55:55Z")

</div>

Hello Gabor,

On our side, we are currently evaluating different options to suspend Dynatrace Kubernetes monitoring on our development clusters during evenings and weekends.

I would like to know if you have made any progress following your last message?

More specifically, I am looking for a solution that would allow us to centrally control this suspension (Dynatrace SaaS), ideally from the perspective of container monitoring rather than host (node) monitoring.

This is a temporary measure, as our long‑term objective is to partially shut down most of the infrastructure supporting these clusters. This would help reduce not only Dynatrace monitoring costs, but also overall infrastructure costs.

Best regards,  
Michel

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 19, 2026, 4:52pm UTC](https://community.dynatrace.com/t/disable-oneagent-monitoring-for-kubernetes-cluster/41655/9 "2026-02-19T16:52:57Z")

</div>

Hello&nbsp;[@Michel-Vallee](https://community.dynatrace.com/user/60493)&nbsp;,

I’ve implemented such a solution for one of our customers. It’s based on Workflows in SaaS and does exactly what you describe. Parts of the environment (typically non-prod environments) are disabled and enabled on purpose.  
Triggers are:

- schedule (enabled 6:30 - 19:00 on business days)
- manual
- when deployment is running (integration with gitlab and SDLC events), so that you don’t need to restart OneAgents.

After enabling, the workflow checks processes where deep monitoring is not working and sends events that a particular process has to be restarted - this typically does not happen, but sometimes people do manual changes instead of deployment.

It not only includes OneAgents, but also Kubernetes clusters and can be extended to any other configuration. This makes perfect sense in combination with DPS.
