Skip to content

Commit 94660d5

Browse files
authored
Merge pull request #176545 from SwathiDhanwada-MSFT/patch-58
(AzureCXP) fixes MicrosoftDocs/azure-docs#82643
2 parents ab14db5 + b6d1d4f commit 94660d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ InsightsMetrics
130130
InsightsMetrics
131131
| where Origin == "vm.azm.ms"
132132
| where _ResourceId startswith "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" and (_ResourceId contains "/providers/Microsoft.Compute/virtualMachines/" or _ResourceId contains "/providers/Microsoft.Compute/virtualMachineScaleSets/")
133-
| where Namespace == "Processor" and Name == "UtilizationPercentage"<br>\| summarize AggregatedValue = avg(Val) by bin(TimeGenerated, 15m), _ResourceId
133+
| where Namespace == "Processor" and Name == "UtilizationPercentage" | summarize AggregatedValue = avg(Val) by bin(TimeGenerated, 15m), _ResourceId
134134
```
135135

136136
**CPU utilization for all compute resources in a resource group**
@@ -139,7 +139,7 @@ InsightsMetrics
139139
InsightsMetrics
140140
| where Origin == "vm.azm.ms"
141141
| where _ResourceId startswith "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/my-resource-group/providers/Microsoft.Compute/virtualMachines/" or _ResourceId startswith "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/my-resource-group/providers/Microsoft.Compute/virtualMachineScaleSets/"
142-
| where Namespace == "Processor" and Name == "UtilizationPercentage"<br>\| summarize AggregatedValue = avg(Val) by bin(TimeGenerated, 15m), _ResourceId
142+
| where Namespace == "Processor" and Name == "UtilizationPercentage" | summarize AggregatedValue = avg(Val) by bin(TimeGenerated, 15m), _ResourceId
143143
```
144144

145145
### Memory alerts
@@ -168,7 +168,7 @@ InsightsMetrics
168168
InsightsMetrics
169169
| where Origin == "vm.azm.ms"
170170
| where Namespace == "Memory" and Name == "AvailableMB"
171-
| extend TotalMemory = toreal(todynamic(Tags)["vm.azm.ms/memorySizeMB"])<br>\| extend AvailableMemoryPercentage = (toreal(Val) / TotalMemory) * 100.0
171+
| extend TotalMemory = toreal(todynamic(Tags)["vm.azm.ms/memorySizeMB"]) | extend AvailableMemoryPercentage = (toreal(Val) / TotalMemory) * 100.0
172172
| summarize AggregatedValue = avg(AvailableMemoryPercentage) by bin(TimeGenerated, 15m), Computer
173173
```
174174

0 commit comments

Comments
 (0)