08 Sep 2023 02:57 AM - last edited on 11 Sep 2023 09:45 AM by Ana_Kuzmenchuk
Hi,friends
hope to get help.
Monitoring k8s, only monitoring a specific namespace, can this be implemented, if so, what configuration needs to be done.
Solved! Go to Solution.
08 Sep 2023 03:01 AM
Although the help document, found some relevant information, but still a little bit not understand.
Configure monitoring for namespaces and pods | Dynatrace Docs08 Sep 2023 05:23 AM
Hi @Lwl ,
you can go with the same way mentioned in the link you've shared or before the implementation for monitoring K8s, You can create the needed rules as per the following screenshot from the UI settings, I do recommend using do not monitor as this works for me to exclude some namespaces
08 Sep 2023 06:21 AM
Thank you for your reply.
08 Sep 2023 08:22 AM
The solution depends on the Dynatrace deployment model you use in k8s see https://www.dynatrace.com/support/help/shortlink/how-it-works-k8s
If you use classic full stack (still the default if you deploying it using the guided UI approach), then the container rules mentioned by @Mohamed_Hamdy apply.
If you use the cloudNativeFullStack or application only, it's described on the page mentioned by @Lwl - you define monitoring rules in your kubernetes deployment by labeling the namespaces and setting the annotiations at pods to exclude a particular pod from being monitored (if required).