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?
1 Answer
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": [
...
]
}
-
@tartaglia Thanks! Can you add a link to where the options and syntax rules for this are found? 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
-
-
1Oct 2023 update: It's now under
Actions > Settings > Set default time range
– SinaCommented Oct 19, 2023 at 17:14