aws-samples / amazon-cloudwatch-auto-alarms

Automatically create and configure Amazon CloudWatch alarms for EC2 instances, RDS, and AWS Lambda using tags for standard and custom CloudWatch Metrics.
MIT No Attribution
91 stars 85 forks source link

Alarms not creating #5

Closed anmolk17 closed 3 years ago

anmolk17 commented 3 years ago

Hello,

After performing steps in part 1, i am able to see metrics under CWagent namespace but there are no alarms created. When i checked logs of lambda function, below error was found. cloudwatch_error

Can anyone help me on this.

Thanks Anmol

knizami commented 3 years ago

Hello,

It appears that the Lambda function isn't loading correctly. When you follow the deployment steps and create the zip file, ensure that the files are under no subdirectories. When you unzip the package (zip file) that you created for deployment, all the code should be in the root folder.

On Tue, Apr 27, 2021 at 5:32 AM anmolk17 @.***> wrote:

Hello,

After performing steps in part 1, i am able to see metrics under CWagent namespace but there are no alarms created. When i checked logs of lambda function, below error was found. [image: cloudwatch_error] https://user-images.githubusercontent.com/54226811/116227364-592aca00-a754-11eb-8fd6-66901e419f14.JPG

Can anyone help me on this.

Thanks Anmol

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aws-samples/amazon-cloudwatch-auto-alarms/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFXHY7Y3T736A2DND6XGQTTK2HCNANCNFSM43UW2UOA .

anmolk17 commented 3 years ago

Oh man !! thanks for the help. It worked now. Will be working on advance part now.