15 Sep 2022 09:09 AM
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
15 Sep 2022 01:33 PM - edited 15 Sep 2022 01:35 PM
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
16 Sep 2022 08:56 AM - edited 16 Sep 2022 08:57 AM
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.
24 Mar 2023 11:01 AM
Hi Radoslaw
Does this also work for Classic full-stack installation?