1

I am running an Amazon linux AMI and the alarms that I've setup are coming in all showing UT (universal time). It is inconvenient reading these alarms and I'd like them setup to read in eastern time zone (or America/New_York).

I've already set my /etc/localtime to point to -> /usr/share/zoneinfo/America/New_York

ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

But it is still sending alarms in the UT timezone.

Does anyone have a solution to this?

3 Answers3

5

CloudWatch uses universal time to record metrics. (As it ought to. Consider servers and people located in different time zones, different DST change dates, not to mention the insanity of DST itself. As in aviation, UT is the only reasonable way to cope.)

So the CloudWatch system uses UT. This is independent of the systems being monitored. Which is why changing the TZ on your server didn't have an effect.

It's understandable that you may want Amazon's console web app to report the times shifted to local TZ. Unfortunately Amazon just doesn't offer that AFIK. Some third-party apps like Ylastic might (but might cost extra money).

SunSparc
  • 968
  • 3
  • 10
  • 23
Greg Hendershott
  • 786
  • 1
  • 7
  • 12
1

The time format the CloudWatch uses is UTC. I think we can not change this timezone. it would be nice if they could allow us to change, but as of now, they dont allow us to change...

Invent Sekar
  • 481
  • 1
  • 4
  • 5
0

please refer to link https://aws.amazon.com/blogs/mt/customize-amazon-cloudwatch-alarm-notifications-to-your-local-time-zone-part-1/

it's using lambda to modify it

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/510209) – Dave M Jan 27 '22 at 15:32