prometheus 监控指标遇到 No datapoints found.,下载的prometheus 镜像,helm 部署 prometheus ,无论添加 TZ=Asia/Shanghai 还是挂载本地 /usr/share/zoneinfo/Asia/Shanghai文件至/etc/localtime都无法修改prometheus-server pod 时区依旧相差8小时、


参考:原镜像

FROM k8s-docker-registry-node:5000/centos:centos7.6.1810
ADD prometheus-2.17.1.tar.gz /
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
mv /prome
Prometheus监控指标时区问题与Nodatapointsfound错误

在使用Prometheus进行监控时遇到了时区不正确的问题,即使尝试通过设置TZ环境变量或者挂载时区文件到/etc/localtime也无法解决与北京时间相差8小时的时区差异。同时,还出现了Nodatapointsfound的错误,这可能影响到了监控数据的正常收集和展示。针对这些问题,需要进一步排查Prometheus配置和时区设置。
最低0.47元/天 解锁文章
425

被折叠的 条评论
为什么被折叠?



