首页 > 解决方案 > 为 Azure Application Insights 启用实时指标流

问题描述

我正在使用 Azure 应用程序洞察力监视本地 IIS Web 应用程序,但是当我检查实时指标流时,我可以注意到它不起作用,如下所示数字

因此,我尝试使用以下 PowerShell Cmdlet 安装 Microsoft.ApplicationInsights 块:

Install-Package Microsoft.ApplicationInsights -Version 2.7.1

但不幸的是,它不起作用,我收到以下错误:

Install-Package : A parameter cannot be found that matches parameter name 'Version'.

考虑到该版本已经存在并且我已经尝试过其他版本。

标签: azureazure-application-insights

解决方案


也许你在防火墙或代理后面。将以下内容添加到您的 .config 中:

  <system.net>
    <defaultProxy useDefaultCredentials="true">
      <proxy usesystemdefault="True" autoDetect="True" proxyaddress="http://ip.address.of.your.proxy" />
    </defaultProxy>
  </system.net>

请检查您在 ApplicationInsights.config 中有以下条目:

<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/>

<TelemetryModules>节点中。

<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor, Microsoft.AI.PerfCounterCollector"/>

<TelemetryProcessors>节点。


推荐阅读