Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from TechNative-B-V/feature/alarm_creator
Browse files Browse the repository at this point in the history
Feature/alarm creator
  • Loading branch information
Jerpen80 authored Mar 7, 2024
2 parents 5f7344a + f0e53c8 commit 6bfd461
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 408 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,34 @@ This module works in conjuction with the [Terraform AWS Observability Receiver m

## Usage

# alarms.json structure

The file contains the alarms per service.
In the example below you see the EC2 service that contains the CPU Utilization alarm. This will create the CPU Utilization alarm for every EC2 instance.
```
"EC2" : { <- Service
"CPUUtilization": { <- Alarmname
"AlarmThresholds" : {
"priority": ["P1", "P2", "P3"], <- for every priority there needs to be a threshold and vice versa
"alarm_threshold": ["90", "80", "75"]
},
"ComparisonOperator" : "GreaterThanThreshold",
"Description" : { <- Description is used for naming the alarm in cloudwatch
"Operatorsymbol" : ">",
"ThresholdUnit" : "%"
},
"EvaluationPeriods" : 2,
"MetricName" : "CPUUtilization",
"Namespace" : "AWS/EC2",
"Period" : 300,
"Statistic" : "Average",
"TreatMissingData" : "breaching",
"Dimensions" : "InstanceId"
}
},
```


There is chance when applying the module you might run into the following error;

This error is the AWS API not being able to handle all the requests at once.
Expand Down
Loading

0 comments on commit 6bfd461

Please sign in to comment.