Customer is about to install Dynatrace to monitor Openshift 4.2. They are concerned about selective monitoring. I mean, is it possible to install it on a cluster, and only monitor processes/containers for an openshift project or namespace?
By default in Dynatrace you can disable a server that is the host for some layer (application servers of an specific application, for example). But in openshift, disabling a cluster node could mean disabling lots of entities for several projects, even the ones you want to monitor. How is this done? is an all or nothing thing?
It is possible to select which namespace you do and do not want to monitor in Dynatrace. You can find this in the Settings. Select Processes and containers and select Container monitoring.
There you will have the ability to modify the container monitoring rules to address the namespace you would or would not like to monitor.
Hi @Radoslaw S. sorry to bother. Quick question, is this possible to do via API? or via yaml at the moment of oneagent deployment? Or do it with a tag?
Thank you for the information. Really helpful. But one question… Will this configuration (to limit the namespaces to monitor containers for) prevent the OneAgent from being injected in certain pods in Kubernetes?
My customer can’t integrate Dynatrace to their K8s cluster currently, since its a share cluster so pods for two or three business units are run in the cluster. If they integrate to it (using the Dynatrace Operator) the OneAgent is spun up with their pods and that of the other business units, which depleats their HU license.
So if limiting the Namespaces for which Dynatrace should monitor containers, would this prevent the OneAgent from being deployed to containers for the other business units/systems?
Yes, this will address your use-case. Make sure that you create the exclusion rules before deploying the OneAgent operator. Create a ‘do not monitor’ rule for the other namespace/BUs.
Hi @Radoslaw_Szulgo , this seems to be the API-way. Isn’t it possible to configure this in the cr.yaml? Indicating the namespaces you want to monitor, so you don’t need to create exclusion rules in the UI or via the API.