Define Relative Times in Dashboard Object

Hello Grafana Support,

We are trying to define the time_options in a scripted dashboard but it is ignoring the values we provide.
But refresh does works as intended in the below.


refresh_intervals: ["5s", "10s", "30s" , "1m", "5m", "15m", "30m", "1h", "2h", "1d" ],
time_options: ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"],


refresh_intervals: ["5s", "10s", "30s"],
time_options: ["5m", "15m", "1h", "6h", "30d"],

What Grafana version and what operating system are you using?

  • v7.3.4

What are you trying to achieve?

  • Define relative time ranges

How are you trying to achieve it?

  • Setting the timepicker in the dashboard object

What happened?

  • The provided values were ignored

What did you expect to happen?

  • We expected the timepicker to show the values we defined properly

Can you copy/paste the configuration(s) that you are having problems with?

  • The dashboard object we provided:
timepicker: {
    collapse: false,
    enable: true,
    notice: false,
    now: true,
    refresh_intervals: ["5s", "10s", "30s"],
    time_options: ["5m", "15m", "1h", "6h", "30d"],
    status: "Stable",
    type: "timepicker",

Did you receive any errors in the Grafana UI or in related logs?

  • No

Did you follow any online instructions? If so, what is the URL?

This topic was automatically closed after 365 days. New replies are no longer allowed.