Azure iot edge IoT边缘内置指标是否在IoEdgeHubdev模拟器中工作?

Azure iot edge IoT边缘内置指标是否在IoEdgeHubdev模拟器中工作?,azure-iot-edge,Azure Iot Edge,我试图确定在使用edgeHubDev simulator for v1.0.9本地运行时,是否可以访问Azure IoT Edge的内置指标(已描述)。我创建了一个deployment.template.json,其edgeHub配置如下 "edgeHub": { "type": "docker", "status": "running", "restartPolicy": "always", "se

我试图确定在使用edgeHubDev simulator for v1.0.9本地运行时,是否可以访问Azure IoT Edge的内置指标(已描述)。我创建了一个deployment.template.json,其edgeHub配置如下

"edgeHub": {
            "type": "docker",
            "status": "running",
            "restartPolicy": "always",
            "settings": {
              "image": "mcr.microsoft.com/azureiotedge-hub:1.0.9",
              "createOptions": {
                "User": "ContainerAdministrator",
                "ExposedPorts": {
                  "9600/tcp": {}
                },
                "HostConfig": {
                  "PortBindings": {
                    "5671/tcp": [
                      {
                        "HostPort": "5671"
                      }
                    ],
                    "8883/tcp": [
                      {
                        "HostPort": "8883"
                      }
                    ],
                    "443/tcp": [
                      {
                        "HostPort": "443"
                      }
                    ]
                  }
                }
              }
            },
            "env": {
              "ExperimentalFeatures__Enabled": {
                "value": "true"
              },
              "ExperimentalFeatures__EnableMetrics": {
                "value": "true"
              }
            }
          }
目前我得到一份工作

System.Net.Http.HttpRequestException:无法建立连接,因为目标计算机主动拒绝连接。 --->System.Net.Sockets.SocketException(10061):无法建立连接,因为目标计算机主动拒绝它

无论我是尝试在物联网边缘模块网络上还是从我的电脑上访问它们

有人知道这是否可能,或者更好,但能告诉我我可能做错了什么吗

docker ps的输出

CONTAINER ID IMAGE命令创建的状态端口名称
4753b9bb2416 mcr.microsoft.com/azureiotedge模拟温度传感器:1.0“/bin/sh-c'echo\“$…”2分钟前上升2分钟模拟温度传感器

d264bde9bfb1 mcr.microsoft.com/azureiotdedge hub:1.0“/bin/sh-c'echo\“$…”2分钟前上升2分钟0.0.0.0.0:443->443/tcp,0.0.0.0:5671->5671/tcp,0.0.0:8883->8883/tcp,0.0.0.0:9600->9600/tcp edgeHubDev
/p>当模拟器运行您的工作负载时,“docker ps”的输出是什么?我尽了最大努力在原始问题中表示出来。请让我知道,如果你需要在一个特定领域的澄清添加一些更多的颜色到这个。。。在模拟器中运行时,我能够通过ExposedPort配置生成/使用edgeHub指标。虽然模拟器没有运行edgeAgent(它使用docker compose),但edgeAgent度量没有这样的运气,因此edgeAgent度量在该环境中不可用。