dotnet monitor in kubernetes cluster when 2 or more replicas #3030
-
I want to monitor several pods of the same application in kubernetes deployment. It turns out to monitor one pod correctly, and if there are many of them, then how to monitor correctly single replicas deployment config
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To monitor multiple pods, you can still use dotnet-monitor as a sidecar in each pod. The downside is that you now have one dotnet-monitor for each pod and must know how to connect to each one (e.g. which dotnet-monitor ports correspond to which pod). Another way to do this is to create a DaemonSet that contains the dotnet-monitor container and use hostPath volumes to share the diagnostic communication between the target containers and the dotnet-monitor container. This would allow you to use one dotnet-monitor per node that can monitor containers across different pods. One current drawback to this approach is that the |
Beta Was this translation helpful? Give feedback.
To monitor multiple pods, you can still use dotnet-monitor as a sidecar in each pod. The downside is that you now have one dotnet-monitor for each pod and must know how to connect to each one (e.g. which dotnet-monitor ports correspond to which pod).
Another way to do this is to create a DaemonSet that contains the dotnet-monitor container and use hostPath volumes to share the diagnostic communication between the target containers and the dotnet-monitor container. This would allow you to use one dotnet-monitor per node that can monitor containers across different pods. One current drawback to this approach is that the
/metrics
route will only serve up metrics for a single process, so once…