【问题标题】:Enable Live metrics stream for Azure Application Insights为 Azure Application Insights 启用实时指标流
【发布时间】:2018-08-09 09:45:38
【问题描述】:

我正在使用 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'.

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

【问题讨论】:

  • 如果实时指标不起作用,安装 Microsoft.ApplicationInsights 将无济于事。 LiveMetrics 是 PerfCounterCollector 包的一部分。顺便说一句 - 你能重新粘贴屏幕截图吗,因为这里什么都看不到。
  • 完成。请重新检查帖子

标签: azure azure-application-insights


【解决方案1】:

也许您在防火墙或代理后面。 将以下内容添加到您的 .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"/>

在&lt;TelemetryModules&gt; 节点中。

和

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

在&lt;TelemetryProcessors&gt; 节点中。

【讨论】:

  • 我的ApplicationInsights.config 里都有,但还是不行。
  • 在您的应用程序中安装 Microsoft.ApplicationInsights.AspNetCore 包,您应该能够在 Live Metrics Stream 中看到 AppInsights
【解决方案2】:

在您的应用程序中安装 Microsoft.ApplicationInsights.AspNetCore 包,您应该能够在 Live Metrics Stream 中看到 AppInsights。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-02
    • 1970-01-01
    • 1970-01-01
    • 2022-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多