【应用程序见解 Application Insights】使用Azure Monitor Application Insights Agent获取Azure VM中监控数据及IIS请求指标等信息

问题情形

为了使用Application Insights也可以监控Azure VM中的相关性能数据,如CPU, Memory,IIS Reuqest等信息,可以在VM中开始一个一个扩展插件: Azure Monitor Application Insights Agent

 

在Azure Application Insights的最终效果如下图(可直接在Live Metrics页面查看VM中的实时指标,Incoming Requests/Outgoing Requests/Overall Health):

操作步骤

1) 在Azure中创建VM并远程登陆 (RDP)到虚拟机中启用IIS。这是安装Azure Monitor Application Insights Agent的前提条件

2) 在Azure VM的门户页面中,选择扩展(Extensions )页面,选择添加扩展

3) 选择Application Insights Agent. 然后把Application Insights中复制出连接字符串,数据到页面中

 

填入Applicaiton Insights的连接字符串

4)完成以上步骤后,等待安装成功。即可回到Applicaiton Insights页面中,查看实时数据(第一次查看可能需要等待几分钟时间) 或是Logs中查看Requests表中数据。

 

posted @   路边两盏灯  阅读(350)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示