成都论坛

Azure Monitor监控windows系统CPU使用率

[复制链接]

1275

主题

1275

帖子

1013

积分

金牌会员

Rank: 6Rank: 6

积分
1013
分享到:
发表于 2021-10-15 14:28:12 | 显示全部楼层 |阅读模式

如果我们之前没有启用性能计数器数据,则可以在Log Analytics Workspace中单击高级设置,再单击数据,现在单击“ Windows性能计数器,最后单击添加选定的性能计数器

查询收集到的数据
我们可以使用如下查询语句从我们收集到的数据中查询出系统的CPU使用率:
Perf| where ObjectName == "rocessor" and CounterName == "% Processor Time" and InstanceName == "_Total" and Computer in ((Heartbeat| distinct Computer))| summarize PCT95CPUPercentTime = percentile(CounterValue, 95) by Computer| summarize max(PCT95CPUPercentTime) by Computer| join(Perf| where ObjectName == "rocessor" and CounterName == "% Processor Time" and InstanceName == "_Total" and Computer in ((Heartbeat| distinct Computer)))on Computer| make-series PCT95CPUPercentTime = percentile(CounterValue, 95) on TimeGenerated from ago( 5h ) to now() step 10m by Computer| render timechart
也可以使用如下语句来查看CPU使用率大于某个值的机器:
let setpctValue = 3erf| where ObjectName == "rocessor" and CounterName == "% Processor Time" and InstanceName == "_Total" and Computer in ((Heartbeat| distinct Computer))| summarize PCT95CPUPercentTime = percentile(CounterValue, 95) by Computer| where PCT95CPUPercentTime > setpctValue| summarize max(PCT95CPUPercentTime) by Computer| join(Perf| where ObjectName == "rocessor" and CounterName == "% Processor Time" and InstanceName == "_Total" and Computer in ((Heartbeat| distinct Computer)))on Computer| make-series PCT95CPUPercentTime = percentile(CounterValue, 95) on TimeGenerated from ago( 5h ) to now() step 10m by Computer| render timechart
将性能图表固定到仪表板
若想将我们所查询出来的图表固定到Azure Dashboard,可以点击查询窗口右上方的固定按钮,然后选择我们要将图标展示在那个Dashboard
MPLS解决方案可以很好的规划好隧道(RSVP-TE和SR-TE路径,监控网络流量、均衡网络流量、提升网络带宽资源利用率,以适应业务流量的大流量与增长。


快速回复 返回顶部 返回列表