chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

tmpltime() variable uses current computers timestamp

Open KoenR3 opened this issue 9 years ago • 3 comments

My usecase is the following:

All my metrics are being pumped into influxdb in UTC (as some are coming from different timezones).

When I use chronograph and use tmpltime() to be able to do a range selection, it uses the computers local timezone. However, the timestamps in influxdb are in UTC, which differs. This makes for some very inconsistent behaviour (i.e. data from one hour ago using tmpltime() does not correspond to the data from one hour ago). Is there a possiblity to add a tag to tmpltime() which would allow to select the timezone of the timestamps in influxdb to convert to the browser timezone? Using something like moment.js should make this possible?

KoenR3 avatar Jan 04 '17 16:01 KoenR3

@KoenR3 it looks like this is in reference to the old chronograf, right now we are not making any changes to that code base. I will move this ticket to that repository, which is unfortunately closed source, so you wont be able to track it. Sorry about that.

nhaugo avatar Jan 05 '17 00:01 nhaugo

@nhaugo I am using v1.0.0-rc1. I am correct in assuming that this is the open source version?

KoenR3 avatar Jan 05 '17 14:01 KoenR3

That is the old version, the newer open source versions are 1.1.0-beta-1 and above, the current version is 1.1.0-beta-5.

nhaugo avatar Jan 10 '17 00:01 nhaugo