0

I am doing a http query on my graphite server:

curl 'http://example.com/render?from=06:04_20140430&until=06:08_20140430&target=servers.server1.memory.MemFree&rawData=true'
servers.hub-eu.memory.MemFree,1398859500,1398859740,60|1854017536.0,1851564032.0,1843437568.0,1868869632.0

The output should start from 06:04 but timestamp 1398859500 corresponds to 12:05. Why would that happen?

Additional info: the graphite server's timezone is EDT. Timezone for server1 is GMT.

Aditya Patawari
  • 1,065
  • 8
  • 23

1 Answers1

0

What timezone is set in local-settings.py? The default is America/Chicago, which is UTC−06:00.

You can specify a time zone to convert all times into for a request by setting tz. E.G.

curl 'http://example.com/render?from=06:04_20140430&until=06:08_20140430&target=servers.server1.memory.MemFree&rawData=true&tz=UTC'
sciurus
  • 12,493
  • 2
  • 30
  • 49