[英]Stackdriver latency for monitoring google cloud pub/sub
Documented from https://cloud.google.com/monitoring/api/v3/metrics#time-series记录自https://cloud.google.com/monitoring/api/v3/metrics#time-series
Metric data is collected on schedules that vary across monitored resources.指标数据是根据不同受监视资源的时间表收集的。 Some data is regularly "pulled" by Stackdriver Monitoring from the monitored resources, and some data is "pushed" by applications, services, or the Stackdriver Monitoring agent. Stackdriver Monitoring 定期从受监控资源中“拉取”一些数据,而一些数据则由应用程序、服务或 Stackdriver Monitoring 代理“推送”。
I'd like to know how stackdriver collects data from Google Cloud Pub/Sub, what is the promised latency bound?我想知道 stackdriver 如何从 Google Cloud Pub/Sub 收集数据,承诺的延迟限制是多少? I've tried creating a topic/subscription and publishing messages and watch how long until the metrics logged in stackdriver.我尝试创建主题/订阅并发布消息,并观察指标在 stackdriver 中记录多长时间。 On average it's about 1-2 minutes, but sometimes very slow, up to 5-8 minutes.平均大约 1-2 分钟,但有时非常慢,最多 5-8 分钟。
We don't currently document what the expectations are for this, in part because there's not a single answer and it depends on different factors. 我们目前没有记录对此的期望是什么,部分原因是没有一个答案,而且取决于不同的因素。 But we are aware that this is important to have, and are working on a clear way to communicate it. 但我们知道这很重要,并且正在以明确的方式进行沟通。 Stay tuned. 敬请关注。
I'm also facing high latencies in PubSub monitoring with KEDA.我在使用 KEDA 进行 PubSub 监控时也面临着高延迟。 It takes 2+ minutes for KEDA to start scaling UP the pods based on the Pub/Sub undelivered messages count provided by GCP's monitoring. KEDA 需要 2 分钟以上的时间才能根据 GCP 监控提供的 Pub/Sub 未传送消息计数开始向上扩展 pod。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.