Setting time range to be maximum 1 week

  • What Grafana version and what operating system are you using?
    Grafana OSS v6.7.4 (I can update if there is a solution in a newer version), windows
  • What are you trying to achieve?
    Setting time range to be maximum 1 week
  • How are you trying to achieve it?
    When the user selects a start time, the end time should be at most 1 week from the start time
  • What happened?
    Due to large amount of data to be loaded, I want to limit to maximum 1 week so that data can be loaded fast and 1 week of data is enough for my dashboard

welcome @capybara123

upgrading is recommended but does not necessarily solve your specific problem

What data source do you have?

As you can see in a more recent version of grafana it has a from and to time range

image

1 Like

Thanks for the reply. I’m getting data from PostgreSQL. Yes I’m seeing this time range selection in my current version. But it’s an arbitrary time range and I want to limit it to max 1 week.

starting from what date? or what static date ranges?