Alerting policies in Cloud Monitoring let you monitor your services and resources by evaluating the conditions that you specify. Conditions compare metric and log data to thresholds, forecast future values, or compute how quickly data is changing.
This document links to sample alerting policies for a variety of conditions. You can create these policies in the Google Cloud console or by using the Cloud Monitoring API. If you use the Monitoring API, we recommend using the Google Cloud CLI, where you pass a JSON file to the command, or client libraries. For more information, see Create alerting policies by using the API.
Each entry in the following list contains a brief description and links to resources for the Monitoring API (JSON) and the Google Cloud console (console):
- Compare value of a metric to a threshold: JSON, console
- Compare rate of change of metric's value to a threshold: JSON, console
- Create alert on metric absence: JSON, console
- Compare value of forecasted metric value to a threshold: JSON, console
- Monitor a dynamic group of resources: JSON, console
- Create alert for an uptime check: JSON, console
- Monitor count of VM processes: JSON, console
- Compare a ratio of metrics to a threshold: JSON, console
- Monitor quota metrics: JSON, console