首页 > 解决方案 > Prometheus UI 间歇性地抛出警告

问题描述

我在 Kubernetes 环境中的 Docker 映像中运行 Prometheus(版本 2.29.1)。

~ $ prometheus --version
prometheus, version 2.29.1 (branch: HEAD, revision: dcb07e8eac34b5ea37cd229545000b857f1c1637)
  build user:       root@364730518a4e
  build date:       20210811-14:48:27
  go version:       go1.16.7
  platform:         linux/amd64

Prometheus UI 偶尔会显示“警告:获取服务器时间时出现意外响应状态:无法获取”的警告。图片链接如下以供参考。此错误并不总是出现,但只会出现几次。我尝试为 Prometheus pod 打开 log.level 上的调试选项,但在日志中未观察到相关错误。节点上的资源可用性看起来不错。还有其他人遇到类似问题或我们知道的任何可能的修复吗?

我在 UI 中收到的错误消息是:

Warning: Unexpected response status when fetching server time: Failed to fetch

错误页面截图

标签: prometheus

解决方案


推荐阅读