prometheus - Prometheus 中的最大 scrape_interval 是多少

标签 prometheus

我使用 Prometheus 来衡量业务指标,例如:

# HELP items_waiting_total Total number of items in a queue
# TYPE items_waiting_total gauge
items_waiting_total 149

我想长期保留这些数据(保留 5 年),并且我不需要在 scrape_interval 中使用高频率。所以我设置了scrape_interval: "900s" .

当我以 60 秒的分辨率检查 Prometheus 中的图形时,它显示了扑动,但事实并非如此。

enter image description here

问题是,Prometheus 中的最大(推荐)scrape_interval 是多少?

最佳答案

不建议超过大约 2 分钟。这是因为默认情况下陈旧时间为 5 分钟(这就是造成间隙的原因),并且您希望允许抓取失败。

关于prometheus - Prometheus 中的最大 scrape_interval 是多少,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40230057/

相关文章:

spring-boot - 如何根据标签更新千分表

go - 在 golang 的单独端口中公开 Prometheus 指标

go - 普罗米修斯自定义注册表不工作

grafana - 如何为普罗米修斯数据源提供带有时间范围的grafana变量中的label_values?

java - 如何使用 Java 客户端将通用标签添加到我的所有 Prometheus 指标

weblogic - 错误 - "INVALID"不是有效的开始标记

docker - 无法使用 docker (prom/prometheus) 加载 prometheus.yml 配置文件

linux - "Package ... is not in GOROOT "时出现错误 "go run"

kubernetes - 获取 Pod 处于挂起状态的平均时间

azure - 如何在重定向 URI 中使用域名内的通配符 (Azure AD)