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

How to monitor a specific namespace in Kubernetes?

Lwl
Helper

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.

4 REPLIES 4

Lwl
Helper

Although the help document, found some relevant information, but still a little bit not understand.

Configure monitoring for namespaces and pods | Dynatrace Docs
 

Mohamed_Hamdy
DynaMight Champion
DynaMight Champion

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

Mohamed_Hamdy_0-1694146723171.png

 

Certified Dynatrace Professional | Certified Dynatrace Services Delivery - Observability & CloudOps | Dynatrace Partner - yourcompass.ca

Thank you for your reply.

Julius_Loman
DynaMight Legend
DynaMight Legend

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).




Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts