Skip to content

Metrics

Each gateway pod serves these at :9090/metrics. Counters are per pod and reset when the pod restarts. For alerting, see Metrics and alerts.

Metric Type Description
lowtide_publish_requests_total counter Publish requests, counted before the WAL append.
lowtide_messages_published_total counter Messages stored, counted after the WAL append succeeds.
lowtide_wal_files_sealed_total counter WAL files closed for upload, including files recovered at startup.
lowtide_segments_uploaded_total counter Segments uploaded to Cloud Storage and recorded in the index.
lowtide_segment_bytes_uploaded_total counter Bytes uploaded.
lowtide_upload_errors_total counter Failed uploads or index writes. The uploader retries without limit.
lowtide_pending_upload_bytes gauge WAL bytes waiting for upload. Publishes are refused above the pending-upload cap.
lowtide_wal_failed gauge 1 once the WAL has failed. The pod refuses publishes until it restarts.
lowtide_lane_forwards_total counter Ordered publishes forwarded to the pod that owns the key’s lane.
Metric Type Description
lowtide_messages_delivered_total counter Messages delivered to consumers.
lowtide_messages_acked_total counter Acknowledgements.
lowtide_messages_nacked_total counter Negative acknowledgements.
lowtide_messages_redelivered_total counter Messages delivered again.
lowtide_ack_deadline_expired_total counter Deliveries whose ack deadline passed.
lowtide_messages_expired_total counter Unacknowledged messages past their retention.
lowtide_messages_filtered_total counter Messages a subscription filter skipped.
lowtide_messages_dead_lettered_total counter Messages sent to a dead-letter topic.
lowtide_cursor_checkpoints_total counter Acknowledgement positions recorded in the database.
lowtide_active_subscriptions gauge Subscription shards this pod serves.
lowtide_streaming_pull_streams gauge Streaming pulls open on this pod.
lowtide_subscription_backlog_messages{subscription} gauge Unacknowledged messages in the shards this pod serves. Sum over pods.
lowtide_subscription_oldest_unacked_age_seconds{subscription} gauge Age of the oldest unacknowledged message in those shards. Take the maximum over pods.
lowtide_subscription_outstanding_messages{subscription} gauge Messages delivered and awaiting acknowledgement. Sum over pods.

Backlog includes messages a subscription filter will skip, until the shard has read them. Pub/Sub leaves those out.

Metric Type Description
lowtide_cross_zone_bytes_total{subscription,path} counter Bytes this pod received from a pod in the other zone. path="peer-read": a shard served for the other zone read its recent messages pod to pod (Fastest). path="proxy": a consumer was proxied to a pod in the other zone. Lowest cost reads from Cloud Storage and adds nothing here.
lowtide_subscription_layout{subscription} gauge 2 once the subscription runs zone shards, 1 while it still runs the earlier layout (during an upgrade, until every pod supports zones).
lowtide_subscription_shards{subscription,placement} gauge Shards this pod serves. local: its own zone’s. fallback: the other zone’s, which has no consumers. spill: the other zone’s, whose consumers fell behind.
lowtide_subscription_spill{subscription,zone} gauge 1 while the zone’s consumers are behind and the other zone takes part of its shards.

The gateway cannot tell which zone a client runs in, so the client’s own connection to a pod is not counted. Inside the cluster, Google bills the bytes in lowtide_cross_zone_bytes_total at the inter-zone rate. To see the total per subscription:

sum by (subscription) (increase(lowtide_cross_zone_bytes_total[1h]))
Metric Type Description
lowtide_reads_tail_cache_total counter Reads served from this pod’s memory.
lowtide_reads_peer_total counter Reads served by another pod’s memory.
lowtide_reads_gcs_total counter Reads from Cloud Storage segments.
Metric Type Description
lowtide_push_requests_total counter Push requests sent.
lowtide_push_errors_total counter Push requests that failed.
lowtide_sink_files_written_total counter Cloud Storage files written.
lowtide_sink_rows_loaded_total counter BigQuery rows written.
lowtide_sink_errors_total counter Failed BigQuery or Cloud Storage writes.
Metric Type Description
lowtide_gc_segments_deleted_total counter Segments deleted past retention.
lowtide_gc_acked_segments_deleted_total counter Segments deleted because every subscription acknowledged them.
lowtide_gc_objects_deleted_total counter Cloud Storage objects no longer referenced by the index, deleted.
lowtide_subscriptions_expired_total counter Subscriptions deleted by their expiration policy.
lowtide_snapshots_expired_total counter Snapshots deleted after expiry.
Metric Type Description
lowtide_auth_denied_total counter Calls refused by authentication or authorization.
lowtide_iam_checks_total counter Permission checks sent to Cloud IAM (cache misses).

Per topic and pod, while a topic is mirrored. Take the maximum lag and the sum of the rest over pods.

Metric Type Description
lowtide_mirror_lag_seconds{topic} gauge Age of the oldest message not yet forwarded.
lowtide_mirror_backlog_messages{topic} gauge Messages waiting to be forwarded.
lowtide_mirror_forwarded_messages_total{topic} counter Messages Pub/Sub accepted.
lowtide_mirror_forwarded_bytes_total{topic} counter Bytes Pub/Sub accepted.
lowtide_mirror_errors_total{topic,kind} counter Failed publishes by kind: not_found, permission_denied, invalid_argument, unauthenticated, throttled, unavailable, network, other.
lowtide_mirror_parked{topic} gauge 1 while the mirror is parked: the target topic is missing or the gateway may not publish to it.
lowtide_mirror_origin_attributes_skipped_total{topic} counter Messages forwarded without the origin attributes, because adding them would exceed Pub/Sub’s limits.
Metric Type Description
lowtide_build_info{version} gauge Always 1. The gateway’s version.
lowtide_cluster_info{cluster_id} gauge Always 1. The cluster’s ID.
lowtide_pod_info{pod,zone} gauge Always 1.
lowtide_licence_state{state} gauge 1 for the current state: missing, valid, grace, restricted or invalid. No state affects message traffic.
lowtide_licence_expiry_seconds gauge Unix time the licence expires, 0 without a verified licence.