How to use dotnet monitor in windows containers to collect application metrics

1/23/2022

I'm trying to set up the use of dotnet-monitor in a windows pod. But if I understand correctly, there are no images for use on Windows nodes https://hub.docker.com/_/microsoft-dotnet-monitor. Is there any way to install dotnet-monitor utilities in Dockerfile windows pod to start collecting metrics from my windows application?

-- Vitalii Fedorenko
.net
.net-core
azure
kubernetes
monitor

1 Answer

2/1/2022

The side car approach for setting up Dotnet Monitor in a Windows Container to get the diagnostics logs of a different container is currently not supported as mentioned by Jander-MSFT in this Github Issue which might get resolved by this Issue.

As a Solution , You will have to install the tool on the same Windows container by running the below command :

dotnet tool install --global dotnet-monitor --version 6.0.0

You can refer this blog by Scott Hanselman for more details on the same .

-- AnsumanBal-MT
Source: StackOverflow