普罗米修斯正在从离线目标上刮擦
我正在使用Docker Cadvisor监视Docker容器和Prometheus来刮擦Cadvisor端点。但是,如果我关闭CADVISOR和所有Docker容器,Prometheus将连续向我展示离线目标的实际数据,持续5分钟。在那5分钟之后,图形线消失了。这是故意的吗?我该如何更改它,以便当目标端点无法到达时,Prometheus不显示任何数据?
Prometheus被配置为每5秒钟刮擦数据。
感谢您的帮助!
i'm using Docker cAdvisor to monitor docker containers and Prometheus to scrape the cAdvisor endpoint. However, if i turn off cAdvisor and all my docker containers, Prometheus is continiung to show me actual data from the offline targets for another 5 minutes. After those 5 minute the graph-line disappears. Is this behavior intentional? And how can i change it so that when the target endpoint is not reachable, Prometheus does not show any data?
I have added an image for better understanding:
Prometheus is configured to scrape data every 5 seconds.
Thanks for help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是在运行Prometheus时添加
-QUERY.LOGERBACK-DELTA = XXS
作为标志。The solution is to add
--query.lookback-delta=XXs
as a flag when running Prometheus.