Skip to content

dotnet monitor in kubernetes cluster when 2 or more replicas #3030

Answered by jander-msft
Iceforestik asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jander-msft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3025 on December 07, 2022 05:21.