__director

prometheus小坑--no datapoints found

web 界面出现:Warning! Detected 437.83 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results.

 是因为时间不同步导致的。

解决方法:运行prmetheus的linux(centos)主机同步时间:

[root@prometheus-node ~]# yum -y install ntp

[root@prometheus-node ~]# systemctl enable ntpd

[root@prometheus-node ~]# ntpdate time1.aliyun.com
3 May 10:22:51 ntpdate[24343]: step time server 203.107.6.88 offset 61321.940793 sec

运行浏览器的主机:

 

 

 出图:

 

posted on 2020-05-03 10:35  __director  阅读(2868)  评论(0编辑  收藏  举报

导航