8

I want to set the time range of my dashboard permanently to 1 day. Unfortunately it will jump back to 3 hours when doing a browser refresh. Also each dashboard should have its own time range. So for example dashboard 1 should have 1 day time range and dashboard 2 should have 1 month time range by default. How can I achieve that?

Time range selection

1 Answer 1

13

Set the dashboard range to what you want, then click Actions -> Set default time range. In the popup, select the first option: Always load this dashboard using the current time range setting. Save the dashboard after that.

If you want to do it through code or CloudFormation, set the start parameter in the dashboard source. Like this:

{
  "start": "-P1D",
  "widgets": [
   ...
   ]
}
4
  • @tartaglia Thanks! Can you add a link to where the options and syntax rules for this are found?
    – enharmonic
    Commented Apr 23, 2019 at 23:38
  • Parameter is part of the dashboard body: docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/… Commented Apr 24, 2019 at 6:25
  • @DejanPeretin Thanks for this, is it possible to specify the 'start' property for individual widgets in the dashboard? To prevent an extended conversation in comments, I've asked a question separately here if that helps.
    – Ayush
    Commented May 3, 2023 at 15:37
  • 1
    Oct 2023 update: It's now under Actions > Settings > Set default time range
    – Sina
    Commented Oct 19, 2023 at 17:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.