-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
Hello, I'm experiencing a strange behavior with the plugin.
I've the bare-metal in CEST (+0200) that runs the docker plugins inside a docker image running with -v /var/run/docker.sock:/var/run/docker.sock:ro option.
The t = stats['read'] has value like "2016-04-13T14:44:03.808905789+02:00"
When the plugin run the if below use the time.mktime() function
if t:
val.time = time.mktime(dateutil.parser.parse(t).timetuple())
else:
val.time = time.time()
And from documentation: The timetuple parameter given to mktime() doesn't contain any time zone information (it never does, there is no time zone field in a timetuple). Therefore the function has to "guess" which time zone it might be, and mktime() just always assumes that it is local time. That's just how the function behaves.
That means the plugin sends the metrics 2 hours in the future :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels