Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

influxdb and grafana timezone mismatch

I'm trying to use curl to write datapoints into to influxdb and then display with grafana.

The following successfully writes to influxdb, but the time is in UTC

# curl -i -XPOST "http://localhost:8086/write?db=db_fio" --data-binary "test result=22"
HTTP/1.1 204 No Content Request-Id: a333902d-7c69-11e5-802d-000000000000 X-Influxdb-Version: 0.9.4.1 Date: Tue, 27 Oct 2015 05:14:45 GMT

# date
Mon Oct 26 22:17:40 PDT 2015

When I try to display the datapoints in grafana I can not as they are in the future for my timezone (PDT), even thought both services are running on the same server.

What am I doing wrong? How do I get grafana and influxdb to be on the same time?

like image 371
user192749 Avatar asked Oct 27 '15 05:10

user192749


1 Answers

You can set UTC timezone per dashboard.

http://play.grafana.org/dashboard/db/new-features-in-v20?editview=settings Grafana timezone

like image 164
Jan Garaj Avatar answered Sep 24 '22 22:09

Jan Garaj