cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disable Oneagent Monitoring for Kubernetes Cluster

agylpradipta
Helper

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.

6 REPLIES 6

Mizső
DynaMight Guru
DynaMight Guru

Hi @agylpradipta,

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

Mizs_0-1694754000167.png

Enable/Disable by settings objects API:

Mizs_1-1694754325210.png

I hope it helps.

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Gabor
Frequent Guest

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?

 

Gabor
Frequent Guest

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. 

Mizső
DynaMight Guru
DynaMight Guru

Hi @Gabor,

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

Best regards,

János

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Gabor
Frequent Guest

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

Theodore_x86
Helper

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

Houston, we have a problem.

Featured Posts