Time drift between my browser and server

1,308 views
Skip to first unread message

HENG KUAN WEE _

unread,
Oct 13, 2020, 3:06:19 AM10/13/20
to Prometheus Users
Hi all,

I am new to prometheus and is really interested in using it. However, I have been unable to get any metrics data on my Prometheus UI. I checked the targets (from the Prometheus UI target page) and metrics (from the Prometheus UI dropdown) and is certain that Prometheus is able to scrape my deployment's endpoint. 

Therefore, I believe that no data being shown is due to the following error on the Prometheus UI: "Warning! Detected 5508.10 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results." 

Would be glad if anyone can help me with the issue. Thanks!


Christian Hoffmann

unread,
Oct 14, 2020, 10:46:58 AM10/14/20
to HENG KUAN WEE _, Prometheus Users
Hi,

On 10/13/20 9:06 AM, HENG KUAN WEE _ wrote:
> Therefore, I believe that no data being shown is due to the following
> error on the Prometheus UI: "*Warning!* Detected 5508.10 seconds time
> difference between your browser and the server. Prometheus relies on
> accurate time and time drift might cause unexpected query results." 

Certainly sounds like something which should be fixed. :)

Have you tried anything to analyze/fix this?

It essentially means that either your server's clock or your client's
clock is wrong. Try syncing both to a reliable time source.

On Linux you would typically use chronyd, ntpd or systemd-timesyncd for
that. Windows and OSX offer system settings for doing similar things, I
think.
If all things fail, it might temporary work by setting the clocks
manually. But really, NTP would be the proper solution. :)

Kind regards
Christian
Reply all
Reply to author
Forward
0 new messages