15 Sep 2023 05:16 AM
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.
Solved! Go to Solution.
15 Sep 2023 06:05 AM - edited 15 Sep 2023 06:06 AM
Hi @agylpradipta,
I thnik you should try the combination of Monitored entities and Settings objects API.
Enable/Disable by settings objects API:
I hope it helps.
Best regards,
Mizső
17 Dec 2024 02:16 PM
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?
06 May 2025 10:42 AM
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.
06 May 2025 02:18 PM
Hi @Gabor,
As far as I know container monitoring rules works only with FullStuckClassic operator mode.
Best regards,
János
13 May 2025 08:33 AM
Hi @Mizső ,
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
06 May 2025 01:55 PM
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