Skip to content

Commit 50cafbb

Browse files
committed
formatting
1 parent a7a9274 commit 50cafbb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,13 @@ 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
247-
InsightsMetrics
248-
| where Origin == "vm.azm.ms"
249-
| where Namespace == "Processor" and Name == "UtilizationPercentage"
250-
| summarize AggregatedValue = avg(Val) by bin(TimeGenerated, 15m), Computer, _ResourceId
251-
```
246+
247+
```kusto
248+
InsightsMetrics
249+
| where Origin == "vm.azm.ms"
250+
| where Namespace == "Processor" and Name == "UtilizationPercentage"
251+
| summarize AggregatedValue = avg(Val) by bin(TimeGenerated, 15m), Computer, _ResourceId
252+
```
252253
1. Run the query to make sure you get the results you were expecting.
253254
1. From the top command bar, Select **+ New alert rule** to create a rule using the current query.
254255
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)