首页 > 其他分享 >prometheus Error on ingesting samples that are too old or a re too far into the future

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

时间:2023-11-03 17:37:02浏览次数:24  
标签:old far scrape prometheus too samples 数据

目录

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

之前在自己服务器上用docker部署过一个prometheus,今天更新到最新版本,结果发现在peometheus上检索我之前node-exporter的数据是没有的

查看prometheus日志发现

ts=2023-11-03T09:01:03.617Z caller=scrape.go:1741 level=warn component="scrape manager" scrape_pool=centos-40.132 target=http://192.168.40.132:9100/metrics msg="Error on ingesting samples that are too old or a
re too far into the future" num_dropped=708ts=2023-11-03T09:01:03.617Z caller=scrape.go:1350 level=warn component="scrape manager" scrape_pool=centos-40.132 target=http://192.168.40.132:9100/metrics msg="Appending scrape report failed" err="out of boun
ds"

自己的日志和其他exporter采集的数据都被丢弃了,所以开始排查,以下为排查思路
开始排查前记得备份数据,避免数据丢失

磁盘问题

检查prometheus所在机器磁盘是否写满,100%会导致prometheus数据采集失败

时间问题

因为docker部署,所以检查了宿主机和docker内部的时间,发现时间不一样,于是重新部署prometheus和exporter的时候尽量将本地时间挂载到docker内部 ,docker run的时候加上

-v /etc/localtime:/etc/localtime:ro

外面宿主机进行时间同步

ntpdate cn.pool.ntp.org   # 同步机器时间

版本问题

更新exporter版本到与prometheus相同或相近的版本

历史prometheus旧数据

因为我之前部署的旧的prometheus数据 data是挂载到宿主机的,这次部署的时候,还是用的这个旧的文件夹作为prometheus的数据文件夹,导致新的promethues用了旧的数据出现了问题,因为我这是测试环境,我直接删掉了,

删掉后重新部署,发现日志没哟爆错,在prometheus的查询页面也可以看到node的一些信息了。
对于data数据比较重视的,可以自行再找找迁移prometheus旧版本数据到新版本数据的方法,我这里没有涉及

标签:old,far,scrape,prometheus,too,samples,数据
From: https://www.cnblogs.com/liwenchao1995/p/17808034.html

相关文章

  • 使用Faraday库采集微博图片
    之前我们写过一个微博采集程序,不是特别难,那么有朋友想让我用Faraday库来写一个微博的爬虫程序,还要用Ruby来采集微博的图片。果然,不费吹灰之力,它来了,一起来学习一下吧。```rubyrequire'faraday'require'nokogiri'proxy_host='https://www.duoip.cn/get_proxy'proxy_port=8......
  • 瞬间提升你的文件管理游戏!尽在目录博士(Dr. Folder)--打造个性化文件夹的必备利器!
    概述 瞬间提升你的文件管理游戏!尽在目录博士——打造个性化文件夹的必备利器![撒花]目录博士(Dr.Folder)是一款用于Windows操作系统的文件夹管理工具。它可以帮助用户轻松地自定义文件夹的外观和组织方式,使文件和文件夹更易于识别和访问。功能1、文件夹图标更改:用户可以选择不同......
  • samtools 安装使用
    官网:https://github.com/samtools/samtoolshttps://github.com/samtools/samtools/releaseshttps://github.com/samtools/samtools/blob/develop/INSTALL 安装:wgethttps://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2tar-jxvfsamtools-1.9.tar......
  • Keras TypeError: ('Keyword argument not understood:', 'input')
    TypeError:('Keywordargumentnotunderstood:','input') model=Model(input=[inputs],output=output)报错信息TypeError:('Keywordargumentnotunderstood:','input')解决方法换成model=Model(inputs=...,outputs=...) ......
  • ESXI精简thin磁盘容量回收-vmkfstools【转载】
    前言:因之前没合理为虚拟机分配磁盘空间给了1TB,认为精简置备用多少就占多少,长时间也不清空回收站,堆出了占用空间高峰,目前剩余存储空间告急,清理垃圾文件后实际使用200GB,但存储浏览器中该vmdk依然800多GB大,需收缩vmdk操作。先说下三种虚拟磁盘类型的认识1.厚置备延迟置零(zeroed......
  • WCF restful 上传文件 返回413 request entity too large
    网上各种加binding都不行最后找到了在配置文件中加 webHttpBinding1<system.serviceModel>2<bindings>3<webHttpBinding>4<binding5maxBufferPoolSize="2048576000"6......
  • vmware tools无法安装情况
    Win7无法安装VMwareTools怎么办?Win7无法安装VMwareTools的解决方法 发布时间:2023-06-0716:34:41 作者:佚名   我要评论使用VMwareWorkstation上虚拟机时发现一个问题。上Windows10的时候可以自动安装VMwaretools,但上Windows7却显示无法自动安装VMwaretools,本......
  • C# 控件基础1 | 从多态角度理解、遍历菜单栏控件ToolSplit
    一、文章背景1.多态简单描述多态是同一个行为,具有不同的结果。比如都是“叫”,而狗和猫的叫法,声波等形态不一样。多态离不开重载,利用重载某个方法实现其在派生类自己的功能。在C#中,每个类型都是多态的,因为包括用户定义类型在内的所有类型都继承自Object。2.多态在开发中的应......
  • 【MMD】MMD三渲二的终极解决方案msToonCoordinator丨核心概念丨赛璐璐丨技法丨资料
    本篇最开始放在B站的专栏,感觉B站的专栏越来越不方便,想增添补修都非常麻烦(B站专栏只允许修改三次),所以逐步搬迁到博客园。感谢MMD、MME的所有的制作者。使用msToonCoordinator渲染 前言一、这是经验分享,不是专业性质的文章。二、不要在评论区刷U3D、UE、Blender、C4D更强之类......
  • 【软硬件环境与工具使用】setuptools模块
    前言  1)setuptools之setup函数参数详解BuildingandDistributingPackageswithSetuptools-setuptools68.0.0.post20230808documentationPython库打包分发(setup.py编写)简易指南|Huoty'sBlogsetup.py实现C++扩展和python库编译_pythonsetup.py编译_ming7771的博客f......