[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-28。"],[],[],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)"]]