windows_os_timezone not updating
Oestle opened this issue · comments
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 😅
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.
from where you can get windows_os_timezone , do we have a way to get the current time on windows server ?
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