Skip to content

Commit

Permalink
chore(pubsub): add 20s, 30s buckets to consume_latency prom metrics
Browse files Browse the repository at this point in the history
We're increasing the amount of buckets in
`gcloud_aio_pubsub_subscriber_consume_latency_seconds_bucket` to enable
better tracking of tail end latencies.
  • Loading branch information
juanamari94 committed Mar 13, 2024
1 parent 1110d8e commit bdd7e20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pubsub/gcloud/aio/pubsub/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
namespace=_NAMESPACE,
subsystem=_SUBSYSTEM,
unit='seconds',
buckets=(.005, .01, .025, .05, .075, .1, .25, .5, .75, 1.0, 2.5,
5.0, 7.5, 10.0, 20.0, 30.0, float('inf')),
)

BATCH_STATUS = prometheus_client.Counter(
Expand Down
2 changes: 1 addition & 1 deletion pubsub/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gcloud-aio-pubsub"
version = "6.0.0"
version = "6.0.1"
description = "Python Client for Google Cloud Pub/Sub"
readme = "README.rst"

Expand Down

0 comments on commit bdd7e20

Please sign in to comment.