graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #00108
Re: [Question #85711]: Altering the displayed timezone on a graph
Question #85711 on Graphite changed:
https://answers.launchpad.net/graphite/+question/85711
Status: Open => Answered
chrismd proposed the following answer:
This isn't currently supported but it would be a welcomed feature if
you're up for implementing it. There are a few things to keep in mind if
you attempt to tackle it though, first is simply putting in an offset in
the timestamps used to draw the x-axis labels (search for "Draw the
X-labels" in webapp/render/glyph.py). There is already some code there
that adjusts the time to UTC for graphs whose pixel scale is in units of
days or larger because otherwise each datapoint is off by a day. You
could probably just add to this behavior based on a user-specified
parameter.
The next issue is that you will need to add something to the UI to allow
the user to specify their timezone.
Finally, I believe there will need to be a special case to handle when
the user specifies an absolute date range instead of a relative time.
The date range will be in the user's timezone and thus will need to be
converted to the server's timezone before pulling in the datapoints,
otherwise the wrong data will be displayed. For relative times though
(ie. from=-2hours) this should not be an issue.
I hope that helps and if you are in fact interested in implementing this
I'd be glad to help.
Thanks,
Chris
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.