Time Range Expressions and Settings
5 min
time range expressions time range expressions let you manually configure the time range of dashboards and panels using a simple syntax instead of selecting fixed dates this is useful when you want dynamic time windows that always stay relative to the current time supported units s seconds m minutes h hour d days w weeks m months supported operators / start of (day, month, week, etc ) \ end of (day, month, week, etc ) subtract time + add time keywords now current time examples 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 expressions in the time picker’s start & end time fields click apply to apply the custom range to the panel or dashboard time range settings access panel level time range settings by going to panel settings > time range in the right side panel editor these settings let you configure the time range independently for individual panels 1\ override dashboard time range by default, all panels follow the dashboard’s global time range enabling override dashboard time range lets an individual panel use its own time range, independent of the rest of the dashboard this is useful when you want to visualize and compare data across different time periods on the same dashboard, for example, comparing last month’s data alongside this month’s in separate panels 2\ time shift time shift moves a panel’s start and end time forward or backward by a specified amount this lets you view historical data offset from the current time range without changing the dashboard’s global range supported operators (subtract time required) supported units same 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