Skip to content

Commit 42ac577

Browse files
committed
Formatting changes
1 parent 6d81c62 commit 42ac577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/vm/monitor-virtual-machine-alerts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ Here's a walk-through of creating a log alert for when the CPU of a virtual mach
243243
1. In the portal, select the relevant resource. We recommend scaling resources by using subscriptions or resource groups.
244244
1. In the Resource menu, select **Logs**.
245245
1. Use this query to monitor for virtual machines CPU usage:
246-
```kusto
246+
```kusto
247247
InsightsMetrics
248248
| where Origin == "vm.azm.ms"
249249
| where Namespace == "Processor" and Name == "UtilizationPercentage"
250250
| summarize AggregatedValue = avg(Val) by bin(TimeGenerated, 15m), Computer, _ResourceId
251-
```
251+
```
252252
1. Run the query to make sure you get the results you were expecting.
253253
1. From the top command bar, Select **+ New alert rule** to create a rule using the current query.
254254
1. The **Create an alert rule** page opens with your query. We try to detect summarized data from the query results automatically. If detected, the appropriate values are automatically selected.

0 commit comments

Comments
 (0)