Update LAB_11-Implement_Monitoring.md

This commit is contained in:
staleycyn 2024-02-22 14:40:20 -08:00 committed by GitHub
parent d14bc44534
commit 952d3ee47d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,17 +227,15 @@ In this task, you will use Azure Monitor to query the data captured from the vir
1. Replace the query with this one, and then click **Run**. Review the resulting chart.
```bash
// Virtual Machine available memory
// Chart the VM's available memory over the last hour
InsightsMetrics
| where TimeGenerated > ago(1h)
| where Name == "AvailableMB"
| project TimeGenerated, Name, Value
| render timechart
```
InsightsMetrics
| where TimeGenerated > ago(1h)
| where Name == "UtilizationPercentage"
| summarize avg(Val) by bin(TimeGenerated, 5m), Computer //split up by computer
| render timechart
```
1. As you have time, review and run other queries.
1. As you have time, review and run other queries. If you aren't getting any results, consider using the [Log Analytics Demo Environment](https://learn.microsoft.com/azure/azure-monitor/logs/log-analytics-tutorial#open-log-analytics).
>**Did you know?**: Once you find a query you like, you can create an alert from it.