0

我实现了一些 IoT Edge 模块,它们在 Docker 容器中运行,我想使用 Azure Application Insights 来监控它们。我尝试为 Application Insights 下载 Docker 映像,但它不起作用,因为该应用程序似乎是为 Linux 构建的,而我有一个 Windows 主机。这是错误:

>docker pull microsoft/applicationinsights
Using default tag: latest
latest: Pulling from microsoft/applicationinsights
03e1855d4f31: Extracting [==================================================>]  51.36MB/51.36MB
a3ed95caeb02: Download complete
9269ba3950bb: Download complete
6ecee6444751: Download complete
5b865d39f77d: Download complete
e7e5c0273866: Download complete
6a4effbc4451: Download complete
0ca84c702ddf: Download complete
f65c3d129381: Download complete
ef589ca5832a: Download complete
09284c30e414: Download complete
failed to register layer: re-exec error: exit status 1: output: Failed to OpenForBackup failed in Win32: open \\?\C:\ProgramData\docker\windowsfilter\a3b784c3d8da4c4eeca6b42111df7ddc25db2e134b9c655483a7bb144c6fc905\usr\share\man\man3\Locale::gettext.3pm.gz: 
The filename, directory name, or volume label syntax is incorrect. (0x1f) \\?\C:\ProgramData\docker\windowsfilter\a3b784c3d8da4c4eeca6b42111df7ddc25db2e134b9c655483a7bb144c6fc905\usr\share\man\man3\Locale::gettext.3pm.gz

您知道是否存在适用于 Windows 的映像吗?

更新 我尝试使用PerformanceCollectorModule收集性能,但没有运气,因为.NET Core 模块似乎不支持CPU 和内存指标。
最后我尝试使用System.Diagnostics.PerformanceCounter库,但我的容器无权读取这些指标。虽然我尝试将 Authenticated Users 组添加到性能监视器用户和性能日志用户组。

Unhandled Exception: System.AggregateException: One or more errors occurred. (Access to the registry key 'Global' is denied.) ---> 
System.UnauthorizedAccessException: Access to the registry key 'Global' is denied.

不存在任何其他方法来监视 Application Insights 中的 IoT Edge 模块?

4

1 回答 1

0

我遵循“在 Application Insights 中监控 Docker 应用程序”教程并获得了我的边缘 docker 容器主机性能,如下所示:

在此处输入图像描述

我的设置:

主机:Windows 10 桌面

Docker 引擎:适用于 Windows 的 Docker

Docker 映像:Application Insights 映像和 Azure IoT Edge

在“在您的主机上运行 Application Insights 监视器”之后启动 AI 映像。

启动 IoT Edge,然后执行“将您的第一个 IoT Edge 模块从 Azure 门户部署到 Windows 设备”。

你可以试试看是否有帮助。

于 2018-04-17T09:13:20.600 回答