Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows_os_timezone not updating #1486

Open
Oestle opened this issue May 14, 2024 · 3 comments 路 May be fixed by #1499
Open

windows_os_timezone not updating #1486

Oestle opened this issue May 14, 2024 · 3 comments 路 May be fixed by #1499

Comments

@Oestle
Copy link

Oestle commented May 14, 2024

The metric windows_os_timezone seems to only update with a restart of the windows exporter service, which is kind of useless when you want to monitor/alert if the timezone ever changes to something it shouldn't 馃槄

@breed808
Copy link
Contributor

After some reading this appears to be a long-outstanding issue with how the time library caches the timezone: golang/go#28020

As with the node_exporter we may want to document that a restart of the exporter is required to detect timezone changes.

@jkroepke jkroepke linked a pull request May 18, 2024 that will close this issue
@morshaq
Copy link

morshaq commented May 26, 2024

from where you can get windows_os_timezone , do we have a way to get the current time on windows server ?

@jkroepke
Copy link
Member

from where you can get windows_os_timezone , do we have a way to get the current time on windows server ?

No, the Windows API which is in use for that, handles timezone only. https://learn.microsoft.com/en-us/windows/win32/api/timezoneapi/nf-timezoneapi-getdynamictimezoneinformation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants