You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Monitoring/auto-add-cw-alarms/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ of relying on those events, this script will scan all the file systems and volum
17
17
There are two ways you can invoke this script (Python program). Either from a computer that has Python installed, or you could install it
18
18
as a Lambda function. If you want to run it as a Lambda function, a CloudFormation template is included in the repo that will:
19
19
- 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.
21
21
- List the FSx for ONTAP file systems.
22
22
- List the FSx volume.
23
23
- List the CloudWatch alarms.
@@ -92,7 +92,8 @@ messages showing what it would have done, and not really create or delete any Cl
92
92
93
93
### Running as a Lambda function
94
94
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
96
97
can take a significant amount of "clock time" to run, especially in distant regions.
97
98
98
99
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
156
157
Once the script has been configured and invoked, it will:
157
158
* Scan for every FSx for ONTAP file systems in every region. For every file system that it finds it will:
158
159
* 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.
160
161
* Scan for every FSx for ONTAP volume in every region. For every volume it finds it will:
161
162
* Create a Volume Utilization CloudWatch alarm, unless the threshold value is set to 100 for the specific alarm.
162
163
* Scan for the CloudWatch alarms and remove any alarms that the associated resource doesn't exist anymore.
0 commit comments