Thanks for posting your question in the Microsoft Q&A forum.
To set up alerts and dashboards based on metrics collected by diagnostic agents for multiple virtual machines, you can leverage Azure Monitor. Here's a guide on how to get started:
- In the Azure portal, navigate to the
Alerts
service underMonitor
- Create a new alert rule by selecting the appropriate scope (multiple virtual machines)
- In the
Condition
section, select theCustom log search
signal type . - Use the Kusto query language to query the metrics collected by the diagnostic agents across multiple virtual machines
Perf | where ObjectName == "Processor" and CounterName == "% Processor Time" | summarize avg(CounterValue) by Computer, bin(TimeGenerated, 1m)
- Configure the alert logic based on the queried metrics
- Specify the action group to be triggered when the alert condition is met
- Review and create the alert rule
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful