Skip to content

Comments

Removed alarms that aren't needed because the threshold was changed to 100%#46

Open
kcantrel wants to merge 5 commits intomainfrom
remove_unneeded_alarms
Open

Removed alarms that aren't needed because the threshold was changed to 100%#46
kcantrel wants to merge 5 commits intomainfrom
remove_unneeded_alarms

Conversation

@kcantrel
Copy link
Collaborator

No description provided.

@kcantrel kcantrel requested a review from Copilot January 31, 2026 17:33
@github-actions
Copy link

github-actions bot commented Jan 31, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the CloudWatch alarm management logic to automatically delete alarms when their threshold is set to 100%, in addition to deleting orphaned alarms. The changes track threshold values for CPU, SSD, and volume alarms in dictionaries and use this information during the alarm cleanup phase.

Changes:

  • Added threshold tracking dictionaries for CPU, SSD, volume capacity, and volume file alarms
  • Modified alarm deletion logic to remove alarms when their associated resource has a 100% threshold
  • Cleaned up code formatting (removed unnecessary parentheses, standardized string formatting)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.

File Description
FSx_Alerting/Auto-Add-CloudWatch-Alarms/cloudformation.yaml Updated embedded Lambda function code with threshold tracking and alarm deletion logic
FSx_Alerting/Auto-Add-CloudWatch-Alarms/auto_add_cw_alarms.py Implemented threshold tracking dictionaries and enhanced alarm cleanup to handle 100% thresholds

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kcantrel kcantrel requested a review from nichollri February 9, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant