Forum Discussion
Menaka955
Aug 30, 2021Copper Contributor
Maintenance machine should not have HeartBeat alert.
Hi All,
I am working on query where it should show the Heart Beat alert for availability VM and skip the maintenance VM.
Is it possible to have Tags of the VM updated with Maintenance should not have Alert.
Heartbeat
| where Computer contains "VM"
| summarize LastHeartbeat=max(TimeGenerated) by Computer
| where LastHeartbeat < ago(1m)
Thankyou!
Regards
Menaka
- Anders Bengtsson
Microsoft
Hi,
TAGS are not in Log Analytics. But you could build a custom solution to set up computer groups based on tags, then use the computer groups to control alerts.
But you can also use Action Rules to suppress alerts during maintenance.
https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-action-rules?tabs=portal
Talking about availability, there might be better ways for you to measure availability then heart beat. For example if the server is providing a web service you can measure avability based on the web service instead.