Skip to content

Timezone and absolute time range  #639

@torkelo

Description

@torkelo

I am unable to get the tz parameter to have any effect on the time range filter. It seems to only change the time axis on the rendered image.

Example:

/render?from=07:00_20140226&until=08:00_20140226&width=400&height=250&target=carbon.agents.graphite.metricsReceived

image

Here I do not have a tz parameter, the from parameter 07:00_20140226 is handled with the default timezone (set in local_settings.py) and the time axis is also shown in the default timezone (Europe/Berlin).

Example2:

/render?from=07:00_20140226&until=08:00_20140226&width=400&height=250&target=carbon.agents.graphite.metricsReceived&tz=America/New_York

image

This image shows the same data, but the time axis shows time in America/New_York timezone, I would expect that the time range "from" parameter also would be parsed as America/New_York and that the graph would change to reflect a completely different time range.

The problem I have is with Grafana, an alternate frontend for graphite. Users located in different time zones cannot zoom (i.e use absolute time ranges). I would like to send the from and until parameter in their local time zone and have graphite translate it.

Looking at render/views.py it looks like from and until is parsed using parseATTime but somehow it is not having any effect when fetching data for the series.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions