Dashboards
Creating a Dashboard

Time Range Expressions and Settings

7min

Time Range Expressions

You can use time range expressions to manually configure the time range of dashboards. Expressions support the following:

  • Units:
    • s: Seconds
    • m: Minutes
    • h: Hour
    • d: Days
    • w: Weeks
    • M: Months
  • Operators:
    • /: Start of (day, month, etc.)
    • \: End of (day, month, etc.)
    • -: Subtract time
    • +: Add time
  • Keywords:
    • now: Current time

Example:

Expression

From

To

Last 5 minutes

now-5m

now

Yesterday

now-1d/d

now-1d\d

The day so far

now/d

now

This week

now/w

now\w

You can enter the 'from and to' expression in the timestamp's 'Start and End time'.

Document image


Time Range Settings

Access time range settings for panels by clicking on Panel Settings > Time Range. Time Range Settings allow you to perform the following:

1. Override dashboard time range

Individual panels can use their own time range configuration. You can use it to override the dashboard time range by enabling Override dashboard time range.

You can use 'Override dashboard time range' to visualize and compare data in different timelines, for example, last month vs this month.



Document image


2. Time shift

Shift a panel's start and end time by specifying a time shift expression. It supports the following:

  • Operators:
    • -: Subtract time (Required)
  • Units: Same units as Dashboard time range expressions.

Examples:

From

To

Time Shift

Applied From

Applied To

now-1d

now

-5h

now-1d-5h

now-5h

now-1d/d

now-1d\d

-1d

now-1d/d-1d

now-1d\d-1d

Document image