我正在尝试在 Windows pod 中设置 dotnet-monitor 的使用。但如果我理解正确的话,Windows 节点上没有可用的图像 https://hub.docker.com/_/microsoft-dotnet-monitor 。有没有办法在 Dockerfile windows pod 中安装 dotnet-monitor 实用程序来开始从我的 Windows 应用程序收集指标?
最佳答案
目前不支持在 Windows 容器中设置 Dotnet Monitor 以获取不同容器的诊断日志的 side car 方法,如 Jander-MSFT 中所述这个 Github Issue
这可能会通过此解决 Issue
.
作为解决方案,您必须通过运行以下命令在同一个 Windows 容器上安装该工具:
dotnet tool install --global dotnet-monitor --version 6.0.0
您可以引用此 blog
作者:Scott Hanselman,了解有关同一内容的更多详细信息。
https://stackoverflow.com/questions/70826525/