- Microsoft Operations Management Suite Cookbook
- Chiyo Odika
- 265字
- 2021-08-27 20:22:15
Creating an alert rule
Perform the following steps:
- Navigate to the Azure portal at http://portal.azure.com and sign in.
- In the Azure portal, type Log Analytics in the search field and select your workspace.
- In the Log Analytics blade for your workspace, click the Log Search button to take you to the search field:

Figure 3.1
- In the Log Search editor, conduct a search by typing in this table-based query and clicking the search icon:
Perf
| where ( ObjectName == "Memory”)
| where (CounterName == "Available MBytes”) and CounterValue<=1024
|summarize avg (CounterValue) by Computer

Figure 3.2
- After the results have been displayed in the results field, click the alert button at the top of the Log Search page to open the alert rule page:

Figure 3.3
- In the Add Alert Rule page, enter a rule name in the Name field, such as Available Mbytes of Memory <= 1024, and optionally, fill in the Description field.
- Click the drop-down under the Severity to select an alert severity, review the query in the Search query field, and enter a time range in the Time window field.
- In the Schedule section of the alert rule page, enter a time frequency in the Alert frequency field to indicate how often the query should be run.
You can specify a time range and alert frequency of between 5 minutes and 24 hours in both the Time window and Alert frequency fields.
- Next, select the Number of results field and Greater than 0 in the Number of results field. Then click on Save.
推薦閱讀
- Linux設(shè)備驅(qū)動(dòng)開發(fā)詳解(第2版)
- Installing and Configuring Windows 10:70-698 Exam Guide
- Windows Vista融會(huì)貫通
- Kubernetes從入門到實(shí)踐
- 零基礎(chǔ)學(xué)鴻蒙PC:新一代國產(chǎn)操作系統(tǒng)
- 嵌入式系統(tǒng)及其應(yīng)用(第三版)
- AutoCAD 2014中文版從入門到精通
- 一學(xué)就會(huì):Windows Vista應(yīng)用完全自學(xué)手冊(cè)
- Learn CUDA Programming
- Heroku Cloud Application Development
- iOS 10 開發(fā)指南
- Windows網(wǎng)絡(luò)編程(第2版)
- 操作系統(tǒng)之哲學(xué)原理第2版
- 鴻蒙HarmonyOS應(yīng)用開發(fā)入門
- Serverless Architectures with Kubernetes