Hi,
This question is under Observability and Management --> Monitoring --> Alarm Definition
I want to write a custom MQL query to alarm definition to trigger when an instance is down for 10 minutes. If the specified instance is firing error code 503 two(2) times in 10 minutes the alarm should be fired. For now, I referred to the given documentation and examples. According to the documentation, I could write a query to get the result for the above-mentioned requirement that was executed in metrics explorer. But it is unable to fire an alarm because the trigger line goes to 503 but we want to fire it when the result is 1.
Here is the query we could write to get the result for error code 503 in 10 minutes for 3 times.
(HTTP.StatusCode[10m].groupBy(HTTP.StatusCode) == 503).sum() > 3
As I mentioned earlier this shows the result but using this query we were unable to trigger an alarm.
The trigger link is on 503 level but I want to change it to level 1 (Please find the attachment). Is there any possible way to solve this issue or is there any other query that I can use to trigger the alarm in my conditions?
