Skip to content

Commit eaa2eeb

Browse files
authored
Merge branch 'main' into add_warm_performance_tier
2 parents 6515792 + 2add24e commit eaa2eeb

File tree

5 files changed

+97
-47
lines changed

5 files changed

+97
-47
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ There are two ways you can invoke this script (Python program). Either from a co
1818
as a Lambda function.
1919

2020
### Configuring the program
21-
Before you can run the program you will need to configure it. You can configure it two ways. Either by editing the top part of the program itself,
22-
where there are the following variable definitions, or if you are running it as a standalone program, via some command line options.
21+
Before you can run the program you will need to configure it. You can configure it a few ways:
22+
* By editing the top part of the program itself where there are the following variable definitions.
23+
* By setting environment variables.
24+
* If running it as a standalone program, via some command line options.
25+
2326
Here is the list of variables, and what they define:
2427

2528
| Variable | Description |Command Line Option|
@@ -34,14 +37,21 @@ Here is the list of variables, and what they define:
3437
|alarmPrefixSSD | This defines the string that will be put in front of the name of every SSD utilization CloudWatch alarm that the program creates. Having a known prefix is how it knows it is the one maintaining the alarm.|N/A|
3538
|alarmPrefixVolume | This defines the string that will be put in front of the name of every volume utilization CloudWatch alarm that the program creates. Having a known prefix is how it knows it is the one maintaining the alarm.|N/A|
3639

40+
There are a few command line options that don't have a corresponding variables:
41+
|Option|Description|
42+
|:-----|:----------|
43+
|-r region| This option can be specified multiple times to limit the regions that the program will act on. If not specified, the program will act on all regions.|
44+
|-d| This option will cause the program to run in "Dry Run" mode. In this mode, the program will only display messages showing what it would have done, and not really create or delete any CloudWatch alarms.|
45+
|-F filesystem\_ID| This option will cause the program to only add or remove alarms that are associated with the filesystem\_ID.|
46+
3747
As mentioned with the threshold variables, you can create a tag on the specific resource to override the default value set by the associated threshold
3848
variable. Here is the list of tags and where they should be located:
3949

4050
|Tag|Description|Location|
4151
|:---|:------|:---|
42-
|alarm_threshold | Sets the volume utilization threshold. | Volume |
43-
|cpu_alarm_threshold| Sets the CPU utilization threshold. | File System |
44-
|ssd_alarm_threshold| Sets the SSD utilization threshold. | File System |
52+
|alarm\_threshold | Sets the volume utilization threshold. | Volume |
53+
|cpu\_alarm\_threshold| Sets the CPU utilization threshold. | File System |
54+
|ssd\_alarm\_threshold| Sets the SSD utilization threshold. | File System |
4555

4656
:bulb: **NOTE:** When the alarm threshold is set to 100, the alarm will not be created. So, if you set the default to 100, then you can selectively add alarms by setting the appropriate tag.
4757

0 commit comments

Comments
 (0)