Prometheus:浏览器报错:Error on ingesting samples that are too old or are too far into the future

博客讲述了在使用Prometheus时遇到的日志错误:Erroroningestingsamplesthataretoooldoraretoofarintothefuture。问题源于服务器时间与浏览器时间不同步,导致最近一次采集时间(lastScrape)异常。解决方案包括检查并同步各节点服务器时间,以及重启Prometheus。此问题在虚拟机环境中尤为常见。
摘要由CSDN通过智能技术生成

Error on ingesting samples that are too old or are too far into the future

查看日志报错 Error on ingesting samples that are too old or are too far into the future

去UI上查看:

6bg8ch

last Scrape 这是指最近上一次采集的时间,出现这个报错后,这个采集时间会很大

  1. 首先检查各节点服务器的时间,将时间同步
  2. 重启prometheus

总结:由于本人用的是虚拟机测试,所以挂起后在启动服务器时间与浏览器时间不同步导致。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值