简体   繁体   English

通过 Azure 监视器创建警报

[英]Alert creation through Azure Monitor

Query for Azure VM alert creation via Azure Monitor通过 Azure 监视器查询 Azure VM 警报创建

I am trying to create the below alerts via script in azure monitor.我正在尝试通过 azure 监视器中的脚本创建以下警报。 I have tried few scripts but they don't return any results.我尝试了一些脚本,但它们没有返回任何结果。

Disk C Utilization threshold Memory Utilization threshold Paging File threshold value磁盘 C 使用阈值 Memory 使用阈值 Paging File 阈值

Can someone point me at some sample scripts to achieve this?有人可以指点我一些示例脚本来实现这一点吗?

Can you give the details of the alert which you are creating like Log, Metric, etc.. ?您能否提供您正在创建的警报的详细信息,例如日志、指标等?

If it is the log alerts you can readily use the sample script in the github link, this has examples of derive sapce alert and perf alerts as well.如果是日志警报,您可以轻松使用 github 链接中的示例脚本,这也包含派生 sapce 警报和性能警报的示例。 All you need to do is add the alerts which you need in the Json file and run the powershell command.您需要做的就是在 Json 文件中添加您需要的警报并运行 powershell 命令。 https://github.com/microsoft/manageability-toolkits https://github.com/microsoft/manageability-toolkits

this can get you started right away.这可以让你马上开始。 This script creates azure monitor alerts in automated way via powershell.此脚本通过 powershell 以自动方式创建 azure 监视器警报。

Feel free to comment in the GitHub or email the contacts in case of any issues.如有任何问题,请随时在 GitHub 或 email 联系人中发表评论。

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

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