Description

The Delete Unused CloudWatch Alarms action can be used to clean-up CloudWatch alarms that may be unused and unnecessary.

The action inspects the AWS account for CloudWatch alarms that are in an "INSUFFICIENT_DATA" state, and if the alarm is unused, it will be deleted.

Settings

Please see Common Action Settings for a description of settings common to all action types.

Instance Identification Method

Indicate the method in which the alarms are to be identified. Valid options are:

  • All Alarms - All alarms will be checked.
  • By Metric Namespace - Alarms with a matching metric namespace will be checked.

Metric Namespace

Indicate the namespace of the alarms to be checked.

Delete Criteria

Specify the rule which will determine if the alarms should be deleted. Value options include:

  • Metric Does Not Exist - The metric does not exist within CloudWatch.
  • Metric Data Does Not Exist - The metric does not have any data points within the past 14 days.

Test Mode

When checked, the action will execute in test mode only. Alarms will not be deleted.

Amazon Commands Used

The following Amazon AWS commands are used. The access key should have permission to execute all of them.

  • cloudwatch:DeleteAlarms
  • cloudwatch:DescribeMetrics
  • cloudwatch:GetMetricStatistics
  • cloudwatch:ListAlarms
Did this answer your question?