[[["易于理解","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,["# Monitoring Pub/Sub Lite resources\n\nPub/Sub Lite reports metrics to Cloud Monitoring. You can create alerting policies and\ncharts of metrics using Cloud Monitoring.\n\nMetrics and monitored resources\n-------------------------------\n\n\nA metric is a set of measurements about the behavior of a product, service, or application.\nFor example, Pub/Sub Lite reports data for the `backlog_quota_bytes`\nmetric.\n\n\nFor the complete list of Pub/Sub Lite metric types, see the list of\n[Pub/Sub Lite metrics](/monitoring/api/metrics_gcp_p_z#gcp-pubsublite).\n\n\nPub/Sub Lite collects metrics from monitored resources, including the following:\n\n- [`pubsublite_subscription_partition`](/monitoring/api/resources#tag_pubsublite_subscription_partition)\n- [`pubsublite_topic_partition`](/monitoring/api/resources#tag_pubsublite_topic_partition)\n- [`pubsublite_reservation`](/monitoring/api/resources#tag_pubsublite_reservation)\n\nExploring metrics\n-----------------\n\n\nTo explore the metrics that Pub/Sub Lite reports to Cloud Monitoring,\ncreate a chart with the Metrics Explorer.\n\n1.\n In the Google Cloud console, go to the **Metrics Explorer**:\n\n [Go to the Metrics Explorer](https://console.cloud.google.com/monitoring/metrics-explorer)\n2.\n In the **Find resource type and metric pane** , search for and select\n **`pubsublite_subscription_partition`**.\n\n | **Note**: Cloud Monitoring accumulates metric data over time. If your Google Cloud project is new, Cloud Monitoring might not have metric data yet, and the chart reports that no data is available.\n3. From the list of metrics, select **`backlog_quota_bytes`**.\n\n\nThe Metrics Explorer creates temporary charts. To save a chart, add it to a dashboard.\n\nCreating alerting policies\n--------------------------\n\n\nAn altering policy identifies a situation that warrants immediate attention or intervention.\nIf metrics meet the conditions of an alerting policy, Cloud Monitoring sends you a\nnotification. For example, Cloud Monitoring can notify you if\n`backlog_quota_bytes` is about to exceed a Pub/Sub Lite quota.\n\n\nFor more information about creating an alerting policy, see\n[Introduction to alerting](/monitoring/alerts).\n\nWhat's next\n-----------\n\n- [Learn more about metrics and monitored resources](/monitoring/api/v3/metrics).\n- [Learn more about the Metrics Explorer](/monitoring/charts/metrics-explorer).\n- [Create and monitor groups of resources](/monitoring/groups).\n- [Create dashboards and charts](/monitoring/dashboards)."]]