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
90 stars 84 forks source link

Fix/windows-memory-alarm #20

Closed GlennChia closed 1 year ago

GlennChia commented 1 year ago

Issue #, if available: Potentially relates to #17

Description of changes:

Encountered an issue where alarms for Memory % Committed Bytes In Use was not created. To troubleshoot this, I added exception handling for the section of code causing the issue. The exception raised was list index out of range.

Fix: There was an extra value of instance in the key for Memory % Committed Bytes In Use. Removing it fixes the issue and alarms are created successfully

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.