简体   繁体   English

Azure IaaS VM监控

[英]Azure IaaS VM monitoring

How to monitor Azure IaaS VM availability. 如何监视Azure IaaS VM可用性。 how to get alerted in case if the VM goes down or gets restarted. 如果VM关闭或重新启动,如何获取警报。

Existing Azure monitoring / Alert and diagnostics providing alerts on perf counters like CPU, memory and networking. 现有的Azure监视/警报和诊断提供有关性能计数器(如CPU,内存和网络)的警报。 Is there any KPI that we can consider as for to alert in case VM goes down. 如果VM发生故障,我们是否可以考虑发出任何警报的KPI。

We don't want to invest on SCOM and find an alternative for this. 我们不想在SCOM上投资并找到替代方案。

You can use Azure Monitoring for that and also create alerts and use them based on performance counters (CPU / memory, etc) 您可以为此使用Azure监视,还可以创建警报并根据性能计数器(CPU /内存等)使用警报

Azure Monitoring Azure监控

https://azure.microsoft.com/en-us/documentation/articles/monitoring-overview/ https://azure.microsoft.com/zh-CN/documentation/articles/monitoring-overview/

Receive alert notifications 接收警报通知

https://azure.microsoft.com/en-us/documentation/articles/insights-receive-alert-notifications/ https://azure.microsoft.com/zh-CN/documentation/articles/insights-receive-alert-notifications/

You can use it directly through the Azure Portal, or connect using c# for example. 您可以直接通过Azure门户使用它,也可以使用c#进行连接。 All the information you need is on the link above. 您需要的所有信息都在上面的链接上。

I had good results with the "Network In" metric. 我使用“网络输入”指标取得了不错的成绩。

Set an alert for "Network In" with these settings: number "Less than", time aggregation "Total", threshold "15000 bytes" (see what number works best for you) for a period of "Over the last 1 minute" with a frequency of "Every 1 minute". 使用以下设置为“网络输入”设置警报:在“过去1分钟内”的时间段内,设置数字“小于”,时间聚合“总计”,阈值“ 15000字节”(请参见哪个数字最适合您)。频率为“每1分钟”。

How many VMs do you have running in your subscription? 您的订阅中运行了多少个VM? If you're running websites or web services then you could setup a site-to-site VPN tunnel and utilize PowerShell scripts to test availability. 如果您正在运行网站或Web服务,则可以设置站点到站点VPN隧道并利用PowerShell脚本测试可用性。 We use Task scheduler to call PowerShell scripts that perform HTTP GET against websites on specific machines to ensure that the machine is up. 我们使用任务计划程序调用PowerShell脚本,这些脚本针对特定计算机上的网站执行HTTP GET,以确保计算机已启动。

You could also use Get-AzureVM to test for status of the VM. 您还可以使用Get-AzureVM测试VM的状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM