Huy Le
Huy Le

Reputation: 57

Distribution metrics for pubsub's subscription acked time

Is there something like a distribution metrics for pub/sub subscription to tell me what is the p99, p95 of acked messages?

For example: 99% of messsages are acked under 500ms

Upvotes: 1

Views: 258

Answers (2)

Huy Le
Huy Le

Reputation: 57

Google finally give us this metric called ack_latency for subscriber. It's still in beta

Upvotes: 0

Allison Fisher
Allison Fisher

Reputation: 143

Cloud Pub/Sub does not export an ack latency distribution Stackdriver metric. The closest related metrics are subscription/num_undelivered_messages, subscription/oldest_unacked_message_age, and subscription/pull_ack_message_operation_count. (Source: Pub/Sub monitoring guide)

If you happen to be using the Go client library, there is OpenCensus integration on SendAcks, which could give you the distribution you're interested in: https://godoc.org/gocloud.dev/pubsub#hdr-OpenCensus_Integration

Otherwise, you'll have to instrument and measure this yourself in your subscriber code.

Upvotes: 2

Related Questions