知识卡片
短作业指标需延续可见性
持续服务可被周期拉取指标,短作业可能在下一次抓取前结束。推送网关可接受作业上报并供监控系统后续抓取,延长观测窗口;但网关保留的数据需要生命周期和清理规则,不能把任何瞬时任务都无条件塞入网关。选择需遵守监控系统对短作业与实例身份的设计。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 14. Monitoring and Observability Patterns · 查看原书依据
how can you record metrics for batch and other transient jobs that may not be around long enough to be scraped? For such jobs, you need to implement push-based metrics instead. Fortunately, Prometheus has a sister project, the Prometheus push gateway, which implements exactly this pattern. When you
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第14章《Chapter 14. Monitoring and Observability Patterns》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch14.html)
- 结论依据:原文对比pull/scrape与push gateway,说明作业寿命短于采集窗口的盲点。
- 原始内容:how can you record metrics for batch and other transient jobs that may not be around long enough to be scraped? For such jobs, you need to implement push-based metrics instead. Fortunately, Prometheus has a sister project, the Prometheus push gateway, which implements exactly this pattern. When you