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 .

Answer from Ansuman Bal on Stack Overflow
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › core › diagnostics › dotnet-monitor
dotnet-monitor diagnostic tool - .NET | Microsoft Learn
The dotnet-monitor global tool is a way to monitor .NET applications in production environments and to collect diagnostic artifacts (for example, dumps, traces, logs, and metrics) on-demand or using automated rules for collecting under specified ...
🌐
GitHub
github.com › dotnet › dotnet-monitor
GitHub - dotnet/dotnet-monitor: This repository contains the source code for .NET Monitor - a tool that allows you to gather diagnostic data from running applications using HTTP endpoints · GitHub
This repository contains the source code for dotnet-monitor, a diagnostic tool for capturing diagnostic artifacts in an operator-driven or automated manner.
Starred by 706 users
Forked by 124 users
Languages   C# 80.0% | C++ 6.4% | PowerShell 5.1% | Shell 4.4% | CMake 3.0% | Batchfile 0.7%
Discussions

.net - How to use dotnet monitor in windows containers to collect application metrics - Stack Overflow
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 th... More on stackoverflow.com
🌐 stackoverflow.com
Introducing dotnet-monitor, an experimental tool

Intro:

dotnet-monitor is an experimental tool that makes it easier to get access to diagnostics information in a dotnet process.

When running a dotnet application differences in diverse local and production environments can make collecting diagnostics artifacts (e.g., logs, traces, process dumps) challenging. dotnet-monitor aims to simplify the process by exposing a consistent REST API regardless of where your application is run.

This blog post details how to get started with dotnet-monitor and covers the following:

How to setup dotnet-monitor What diagnostics artifacts can be collected; and How to collect each of the artifacts

More on reddit.com
🌐 r/dotnet
6
73
June 23, 2020
azure devops - dotnet-monitor v5 works ok but v8 can't find processes in AKS Kubernetes - DevOps Stack Exchange
I am having a weird issue with dotnet-monitor. One of our developers asked me to prepare in our AKS cluster a dotnet-monitor pod to assess memory counsumption issues with our application. I went wi... More on devops.stackexchange.com
🌐 devops.stackexchange.com
April 30, 2024
[QUESTION] Understanding dotnet-monitor LiveMetrics
You have mentioned Prometheus, so you could simply go with the Prometheus endpoint as descried in the README: https://github.com/dotnet/dotnet-monitor/blob/main/documentation/api/livemetrics-get.md#livemetrics---get More on reddit.com
🌐 r/Monitoring
2
1
April 2, 2023
🌐
Scott Hanselman's Blog
hanselman.com › blog › exploring-your-net-applications-with-dotnetmonitor
Exploring your .NET applications with dotnet-monitor - Scott Hanselman's Blog
September 24, 2020 - It'll start up and you can talk to dotnet monitor with curl, wget, and pipe through jq and hit localhost:52323/processes to get a list of .NET Core processes it can think about.
🌐
Microsoft
devblogs.microsoft.com › dev blogs › .net blog › introducing dotnet-monitor, an experimental tool
Introducing dotnet-monitor, an experimental tool - .NET Blog
May 20, 2021 - dotnet-monitor aims to simplify the process of collecting diagnostics artifacts by exposing a REST API.
🌐
Microsoft Learn
learn.microsoft.com › en-us › shows › on-dotnet › dotnet-monitor-enabling-a-diagnostics-sidecar-in-aks
dotnet-monitor: Enabling a diagnostics sidecar in AKS | Microsoft Learn
September 14, 2022 - When running a .NET application in Kubernetes environments, it can be a challenge to collect diagnostic artifacts (e.g., logs, traces, process dumps). Join us in this video to learn more about using dotnet-monitor with Azure Kubernetes, with hands-on demos to give you experience with configuration, the sidecar pattern, and setting up collection rules.
Find elsewhere
🌐
Docker Hub
hub.docker.com › r › microsoft › dotnet-monitor
microsoft/dotnet-monitor - Docker Image
docker pull mcr.microsoft.com/dotnet/monitor:8 · This image contains .NET Monitor, a diagnostic tool for capturing diagnostic artifacts (such as dumps and traces) in an operator-driven or automated manner. This tool is an ASP.NET application that hosts a web API for inspecting .NET processes ...
🌐
Microsoft
devblogs.microsoft.com › dev blogs › .net blog › what’s new in dotnet monitor
What's new in dotnet monitor - .NET Blog
October 11, 2022 - We’ve previously introduced dotnet monitor as an experimental tool to access diagnostics information in a dotnet process. We’re now pleased to announce dotnet monitor has graduated to a supported tool in the .NET ecosystem.
🌐
GitHub
github.com › dotnet › dotnet-monitor › blob › main › documentation › api › metrics.md
dotnet-monitor/documentation/api/metrics.md at main · dotnet/dotnet-monitor
This repository contains the source code for .NET Monitor - a tool that allows you to gather diagnostic data from running applications using HTTP endpoints - dotnet/dotnet-monitor
Author   dotnet
🌐
Microsoft Learn
learn.microsoft.com › en-us › shows › on-dotnet › inspecting-application-metrics-with-dotnet-monitor
Inspecting application metrics with dotnet-monitor | Microsoft Learn
January 12, 2021 - dotnet-monitor is a command line tool that makes it easier to get access to diagnostics information in a dotnet process.In the episode, Rich is joined by Sourabh who explains to us the importance of gathering application diagnostics and also ...
🌐
Poppastring
poppastring.com › blog › collecting-dumps-anywhere-with-dotnetmonitor
Collecting dumps anywhere with dotnet-monitor
September 14, 2020 - I have been really fortunate to partner with .NET team to help develop dotnet-monitor, it is designed to makes it easier to egress diagnostics information from a .NET process regardless of the OS or even if it sits in container.
🌐
Grafana
grafana.com › grafana › dashboards › 19297-dotnet-monitor-dashboard
dotnet-monitor dashboard | Grafana Labs
This dotnet-monitor dashboard is designed to show the default .NET metrics scraped using Managed Prometheus on Azure.
🌐
Reddit
reddit.com › r/monitoring › [question] understanding dotnet-monitor livemetrics
r/Monitoring on Reddit: [QUESTION] Understanding dotnet-monitor LiveMetrics
April 2, 2023 -

https://github.com/dotnet/dotnet-monitor/blob/main/documentation/api/livemetrics-get.md

I use dotnet-monitor as a sidecar container and I can get LiveMetrics via API. Well, just make a request via curl and return LiveMetrics. But how can I collect them? I have not seen anything like this not in Prometheus, not in Grafana, not in Zabbix. All I Googled is that they are parsed well using Azure Monitor. How can I collect and parse them if I'm not in Azure?

🌐
Microsoft Learn
learn.microsoft.com › en-us › shows › on-dotnet › dotnet-monitor-fundamentals-accessing-net-diagnostics-easier
dotnet-monitor Fundamentals - Accessing .NET Diagnostics Easier | Microsoft Learn
When running a .NET application, differences in diverse local and production environments can make it a challenge to collect diagnostic artifacts (e.g., logs, traces, process dumps). dotnet-monitor aims to simplify this process by exposing a consistent HTTP API regardless of where your application is run.
🌐
raulnq
blog.raulnq.com › diagnostic-net-apps-using-dotnet-monitor
Diagnostic .NET Apps using dotnet-monitor
November 10, 2023 - Typically, one must access the environment, install some tools, and then gather the information. dotnet-monitor simplifies and unifies the way of collecting diagnostic information by exposing a REST API, regardless of where your application is being executed (on your local machine, an on-premises server, or within a Kubernetes cluster).