I am using CloudWatch and I find that timezones appear in either UTC or the local timezone variously in different contexts. For example, when I look at one right now, in CloudWatch > Logs I see Log Streams shown in local time. In Metrics, they appear in UTC.
This can make troubleshooting difficult.
How can I ensure that a single timezone appears in all contexts, all throughout CloudWatch?
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/ . In the navigation pane, choose Dashboards, and then choose a dashboard. In the upper-right corner of the dashboard screen, choose Custom. In the upper-right corner of the box that appears, select UTC or Local time from the dropdown.
The time format the CloudWatch uses is UTC. I think we can not change this timezone.
You can create cross-account cross-Region dashboards, which summarize your CloudWatch data from multiple AWS accounts and multiple Regions into one dashboard.
CloudWatch DashboardAll dashboards are global, not region-specific. You can add, remove, resize, move, edit or rename a graph. You can metrics manually in a graph.
This answer follows the layout of the CloudWatch console (at the time of writing).
The procedure should fix the time zone in all contexts other than Event Rule Schedule Expressions, where Amazon's documentation states that only UTC is possible.
PROCEDURE
Go to CloudWatch console at https://console.aws.amazon.com/cloudwatch/
Metrics
In the nagivation pane, choose Metrics.
Choose the custom menu and then choose UTC or Local timezone.
This will take effect in all contexts where metrics are displayed, e.g. in Dashboards, Lambda functions etc.
Logs
In the navigation pane, choose Logs.
For Log Groups, choose any log group to view some streams.
For Log Streams, choose any log stream name to view some log data.
Now to change the timezone, click on the blue date/time in the top-right corner. Choose UTC or Local timezone and then click Cancel.
Alarms history
Under Alarms, there are alarms, and on selecting an alarm, there is a History tab. These take their timezone from the Metrics above. There should be nothing to do in here.
Events
Under Events there are Schedule expressions for Rules. Unfortunately, as noted above, Amazon's documentation states that all scheduled events use UTC time zone.
References
Modify the Time Range or Time Zone Format for a Graph
Working With Log Groups and Log Streams
Schedule Expressions for Rules
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With