Stay organized with collections
Save and categorize content based on your preferences.
This document provides links to different types of alerting policies. The
linked content might help you create the alerting policies
that you need to monitor your services.
If you use the Cloud Monitoring API, we recommend that you use the Google Cloud CLI
or client libraries to create your alerting policies. If you use the
Google Cloud CLI, you pass to it a JSON file that contains the policy definition.
For more information, see
Create alerting policies by using the API.
Each entry in the following list contains a brief description and two links.
If you use the Cloud Monitoring API and want more information,
then click on JSON.
If you use the Google Cloud console, then click on console:
Compare value of a metric to a threshold:
JSON, console
Compare rate of change of metric's value to a threshold:
JSON, console
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Summary of example alerting policies\n\nThis document provides links to different types of alerting policies. The\nlinked content might help you create the alerting policies\nthat you need to monitor your services.\n\nIf you use the Cloud Monitoring API, we recommend that you use the Google Cloud CLI\nor client libraries to create your alerting policies. If you use the\nGoogle Cloud CLI, you pass to it a JSON file that contains the policy definition.\nFor more information, see\n[Create alerting policies by using the API](/monitoring/alerts/policies-in-api).\n\nEach entry in the following list contains a brief description and two links.\nIf you use the Cloud Monitoring API and want more information,\nthen click on `JSON`.\nIf you use the Google Cloud console, then click on `console`:\n\n- Compare value of a metric to a threshold: [JSON](/monitoring/alerts/policies-in-json#json-metric-threshold), [console](/monitoring/alerts/using-alerting-ui)\n- Compare rate of change of metric's value to a threshold: [JSON](/monitoring/alerts/policies-in-json#json-rate-of-change), [console](/monitoring/alerts/using-alerting-ui#rate-of-change)\n- Create alert on metric absence: [JSON](/monitoring/alerts/policies-in-json#json-metric-absence), [console](/monitoring/alerts/metric-absence)\n- Compare value of forecasted metric value to a threshold: [JSON](/monitoring/alerts/policies-in-json#json-forecast), [console](/monitoring/alerts/metric-forecast)\n- Monitor a dynamic group of resources: [JSON](/monitoring/alerts/policies-in-json#json-group-aggr), [console](/monitoring/alerts/monitor-resource-group)\n- Create alert for an uptime check: [JSON](/monitoring/alerts/policies-in-json#json-uptime), [console](/monitoring/uptime-checks/uptime-alerting-policies)\n- Monitor count of VM processes: [JSON](/monitoring/alerts/policies-in-json#json-process-health), [console](/monitoring/alerts/monitor-process-count)\n- Compare a ratio of metrics to a threshold: [JSON](/monitoring/alerts/policies-in-json#json-ratio), [console](/monitoring/mql/examples#qlx-ratios)\n- Monitor quota metrics: [JSON](/monitoring/alerts/using-quota-metrics) , [console](/monitoring/alerts/using-quota-metrics)"]]