Forum Discussion
Disable an alert when Data ingestion stopped
Hi ,
Am triggering alert using application insight logs whenever the below query doesn't return any records
Alert #1
customMetrics
| where timestamp > ago(5m)
| where name == 'HeartbeatState'
| where cloud_RoleName in ('Demoservice1')
| summarize count() by bin(timestamp, 5m), cloud_RoleName;
This alert is working as expected but this alert also fires when ever Daily Data cap reached and Data ingestion is stopped .
Am using the below query using log analytics workspace logs to trigger alert when Data ingestion stopped
Alert#2
_LogOperation | where Operation =~ "Data collection stopped" | where Detail contains "OverQuota"
I don't think its possible to Suppress alert1 when alert 2 is triggered . I couldn't combine this both query because one is from AppInsight and other one is from Loganalytics worspace.
I have also tried to find Daily Cap reached message from Activity log but am not sure how can i use that along with customMetrics Query.
Any suggestion please to avoid getting alerts once Data ingestion stopped
Thanks!