You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing issues with the ha_cluster_pacemaker_config_last_change metric.
It does report the time in Unix time format, but it takes the time as if it was GMT, while crm_mon reports it without any timestamp markup, resulting in the error.
This error is very noticeable for time zones in advance from GMT, since the reported time is in the future.
Here is more data to illustrate the issue:
$ dateTue Mar 16 09:01:17 JST 2021
$ curl -s localhost:9664/metrics|grep ^ha_cluster_pacemaker_config_last_changeha_cluster_pacemaker_config_last_change 1.615884919e+09
$ date -d @1615884919Tue Mar 16 17:55:19 JST 2021
$ sudo crm_mon -X --inactive|grep last_change <last_change time="Tue Mar 16 08:55:19 2021" user="root" client="crm_attribute" origin="host01"/>
$ date -d 'Tue Mar 16 08:55:19 2021'Tue Mar 16 08:55:19 JST 2021
$ date -d 'Tue Mar 16 08:55:19 2021 GMT'Tue Mar 16 17:55:19 JST 2021
Several possibilities for fixing this:
Modify ClusterLabs/pacemaker to make them include a parsable timezone information
Fix the resulting Time object by attaching the timezone of the running system (since the time reported is relative the the system timezone)
The text was updated successfully, but these errors were encountered:
I wasn't aware that crm_mon would report the time as local, I assumed it was UTC, my bad!
It totally makes sense to convert it to UTC when we collect it in the exporter.
Software used:
I'm experiencing issues with the
ha_cluster_pacemaker_config_last_change
metric.It does report the time in Unix time format, but it takes the time as if it was GMT, while
crm_mon
reports it without any timestamp markup, resulting in the error.This error is very noticeable for time zones in advance from GMT, since the reported time is in the future.
Here is more data to illustrate the issue:
Several possibilities for fixing this:
The text was updated successfully, but these errors were encountered: