Skip to content

Commit

Permalink
update sample alarms, config, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ianshward committed Apr 24, 2012
1 parent 34bb256 commit b1a3d8d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
@@ -1,3 +1,7 @@
Node.js script which takes a json array of CloudWatch alarm definitions and creates CloudWatch alarms.

Usage: node index.js --config config.json --alarms example-alarms.json
Setup: Fill out sample-alarms.json with the alarms you want to create. Replace values where your SNS ARN is required.

Usage: Assumes script is run on an EC2

`node index.js --config config-example.json --alarms sample-alarms.json`
4 changes: 4 additions & 0 deletions config-example.json
@@ -0,0 +1,4 @@
{
"awskey": "YOURAWSKEY",
"awssecret": "YOURAWSSECRET"
}
8 changes: 4 additions & 4 deletions example-alarms.json → sample-alarms.json
Expand Up @@ -9,8 +9,8 @@
"Statistic": "Average",
"Unit": "Percent",
"Threshold": "60",
"AlarmActions": [ "arn:aws:sns:us-east-1:234858372212:mapbox-testing"],
"InsufficientDataActions": [ "arn:aws:sns:us-east-1:234858372212:mapbox-testing" ]
"AlarmActions": [ "REPLACE_WITH_YOUR_SNS_ARN"],
"InsufficientDataActions": [ "REPLACE_WITH_YOUR_SNS_ARN" ]
},
{
"AlarmName": "CPU",
Expand All @@ -22,7 +22,7 @@
"Statistic": "Average",
"Unit": "Percent",
"Threshold": "50",
"AlarmActions": [ "arn:aws:sns:us-east-1:234858372212:mapbox-testing"],
"InsufficientDataActions": [ "arn:aws:sns:us-east-1:234858372212:mapbox-testing" ]
"AlarmActions": [ "REPLACE_WITH_YOUR_SNS_ARN"],
"InsufficientDataActions": [ "REPLACE_WITH_YOUR_SNS_ARN" ]
}
]

0 comments on commit b1a3d8d

Please sign in to comment.