Skip to content

Commit aff0fcf

Browse files
committed
Added a CloudFormation template to auto-add-cw-alarms.
1 parent f2584e4 commit aff0fcf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Monitoring/auto-add-cw-alarms/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ of relying on those events, this script will scan all the file systems and volum
1717
There are two ways you can invoke this script (Python program). Either from a computer that has Python installed, or you could install it
1818
as a Lambda function. If you want to run it as a Lambda function, a CloudFormation template is included in the repo that will:
1919
- Create a role that will allow the Lambda function to:
20-
- List AWS regions. So it can scan all regions for FSx for ONTAP file systems and volumes.
20+
- List AWS regions. This is so it can scan all regions for FSx for ONTAP file systems and volumes.
2121
- List the FSx for ONTAP file systems.
2222
- List the FSx volume.
2323
- List the CloudWatch alarms.
@@ -92,7 +92,8 @@ messages showing what it would have done, and not really create or delete any Cl
9292

9393
### Running as a Lambda function
9494
A CloudFormation template is included in the repo that will do the steps below. Otherwise, here are the steps required to install the program as a Lambda function.
95-
Create a Lambda function and upload the program as the function code. Set the set the timeout to at least five minutes since some of the API calls
95+
96+
Create a Lambda function and upload the program as the function code. Set the timeout to at least five minutes since some of the API calls
9697
can take a significant amount of "clock time" to run, especially in distant regions.
9798

9899
Once you have installed the Lambda function it is recommended to set up a scheduled type EventBridge rule so the function will run on a regular basis.
@@ -156,7 +157,7 @@ The following permissions are required to run the script (although you could nar
156157
Once the script has been configured and invoked, it will:
157158
* Scan for every FSx for ONTAP file systems in every region. For every file system that it finds it will:
158159
* Create a CPU utilization CloudWatch alarm, unless the threshold value is set to 100 for the specific alarm.
159-
* Create a SSD utilization CloudWatch alarm, unless the threshold value is set to 100 for the specific alarm.
160+
* Create an SSD utilization CloudWatch alarm, unless the threshold value is set to 100 for the specific alarm.
160161
* Scan for every FSx for ONTAP volume in every region. For every volume it finds it will:
161162
* Create a Volume Utilization CloudWatch alarm, unless the threshold value is set to 100 for the specific alarm.
162163
* Scan for the CloudWatch alarms and remove any alarms that the associated resource doesn't exist anymore.

0 commit comments

Comments
 (0)