'GCP Monitoring Alert policy

I am attempting to create an alert policy when a metric value drops from 1 to 0. I understand how to set a threshold of below value, but is there a mechanism/logic/condition I can use to set an alert to be triggered if it lowers in value of x amount of minutes?

Thank you



Solution 1:[1]

In the Cloud Console:

  1. Go to Monitoring
  2. Select Alerting.
  3. Click Create policy.
  4. Click Add Condition in the Create new alerting policy window.

Target:
Select Resource Type (VM Instance/Container/etc)
Metric (CPU Usage/Memory/etc)
Period (Time Interval)

Configuration:
Condition triggers if
Condition (is below in your case)
Threshold
For (select number of minutes)

You can also refer on this Specifying conditions for alerting policies document.

Other metrics/alerting/monitoring how to guides and reference

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 JaysonM