Monitoring Pub/Sub Lite resources

Pub/Sub Lite reports metrics to Cloud Monitoring. You can create alerting policies and charts of metrics using Cloud Monitoring.

Metrics and monitored resources

A metric is a set of measurements about the behavior of a product, service, or application. For example, Pub/Sub Lite reports data for thebacklog_quota_bytes metric.

For the complete list of Pub/Sub Lite metric types, see the list ofPub/Sub Lite metrics.

Pub/Sub Lite collects metrics from monitored resources, including the following:

Exploring metrics

To explore the metrics that Pub/Sub Lite reports to Cloud Monitoring, create a chart with the Metrics Explorer.

  1. In the Google Cloud console, go to theMetrics Explorer:

    Go to the Metrics Explorer
  2. In theFind resource type and metric pane, search for and selectpubsublite_subscription_partition.

    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.
  3. From the list of metrics, selectbacklog_quota_bytes.

The Metrics Explorer creates temporary charts. To save a chart, add it to a dashboard.

Creating alerting policies

An altering policy identifies a situation that warrants immediate attention or intervention. If metrics meet the conditions of an alerting policy, Cloud Monitoring sends you a notification. For example, Cloud Monitoring can notify you ifbacklog_quota_bytes is about to exceed a Pub/Sub Lite quota.

For more information about creating an alerting policy, seeIntroduction to alerting.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.