azure - 为 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'.
考虑到该版本已经存在并且我已经尝试过其他版本。
解决方案
也许你在防火墙或代理后面。将以下内容添加到您的 .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>
节点。
推荐阅读
- angular - 如何在 Overlay Angular 中显示内容?
- javascript - 使用 v 5.2.0 反应路由器问题(延迟更改路由)
- r - 如何从 Excel STOCKHISTORY 到 R 中的列表?
- android - 在 Android 上将 getString 与 JSONObject 类一起使用时获取 null
- android - 当我尝试运行它时,应用程序崩溃了。使用 Kotlin 中的 MVVM 和导航组件进行 Firebase 身份验证
- c# - 编译器错误 CS0029:无法隐式转换为 uint
- python - 如何在python中遍历json文件并根据需求返回数据?
- kubernetes - 从 pod 内部访问主机本地端口
- typescript - 不能将特定对象类型键入为记录?
- python - 如何使用自定义命令执行 python 脚本?