普罗米修斯正在从离线目标上刮擦

发布于 2025-01-23 21:00:40 字数 422 浏览 3 评论 0原文

我正在使用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:
enter image description here

Prometheus is configured to scrape data every 5 seconds.

Thanks for help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青衫负雪 2025-01-30 21:01:11

解决方案是在运行Prometheus时添加-QUERY.LOGERBACK-DELTA = XXS作为标志。

The solution is to add --query.lookback-delta=XXs as a flag when running Prometheus.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文