OneAgent monitors all the namespace including Dynatrace namespace where OneAgent is installed.
1). We are getting unwanted logs of oneAgent and other namespace containers and pods.
2). We are unwanted monitoring the namespace and containers , pods , infrasture details etc.
How to restrict oneAgent to monitored a specific namespace in dynakube.YAML
By default, Dynatrace Operator injects OneAgent into all namespaces, with the following exceptions:
kube-
or openshift-
.There are more configuration options:
namespaceSelector
the parameter in the DynaKube custom resource, and enable monitoring for specific namespaces that have the chosen label.Read more at:
https://www.dynatrace.com/support/help/shortlink/dto-config-k8s#annotate
command exexuted : kubectl label namespace wa monitor=app
Dynakube YAML :
namespaceSelector:
matchLabels:
monitor: app
But still the other namespace and other container logs are shown inside the kubernetes page.
Hi Radoslaw
Does this also work for Classic full-stack installation?