Monitoring

The Cloud Pub/Sub API exports metrics via Stackdriver. Stackdriver allows you to create monitoring dashboards and alerts or access the metrics programmatically.

Viewing metrics

Go to Stackdriver in Google Cloud Platform Console to view Stackdriver monitoring dashboards or to define Stackdriver alerts. You can also use the Stackdriver monitoring API to query and view metrics for subscriptions and topics.

Metrics and resource types

Monitor topic or subscription quota utilization

You can use the APIs and services quotas dashboard to monitor the current utilization for a given topic or subscription.

Those metrics are:

-pubsub.googleapis.com/topic/byte_cost -pubsub.googleapis.com/subscription/byte_cost

Note that these metrics are in bytes, whereas quota is measured in kilobytes.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Pub/Sub Documentation