-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9973a44
commit 5907a35
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# AWSLambda_RIPEAtlas_CloudWatch | ||
# AWSLambda_RIPEAtlas_CloudWatch [](https://travis-ci.org/chriselsen/AWSLambda_RIPEAtlas) | ||
AWS Lambda script to push Status and Latency information from a RIPE Atlas (https://atlas.ripe.net/) health check into AWS CloudWatch | ||
|
||
RIPE Atlas employs a global network of probes that measure Internet connectivity and reachability. Status checks let you turn a measurement into a basis for an alert, allowing you to use measurements to gauge the health of your network in a variety of ways. This AWS Lambda script collects information from a RIPE Atlas status check and feeds it into AWS CloudWatch metrics. | ||
|
||
**Pre-Requisites:** | ||
* Role for Lambda that allows put-metric access to Amazon CloudWatch | ||
* RIPE Atals account with a "status check" measurement (https://atlas.ripe.net/docs/api/v2/manual/measurements/status-checks.html) | ||
|
||
**How-To:** | ||
* Create AWS Lambda function | ||
* Name: RIPEAtlas_CloudWatch | ||
* Description: Check availability of websites | ||
* Runtime: Node.js 4.3 | ||
* Handler: index.handler | ||
* Timeout : 10 sec | ||
* Source: In file RIPEAtlas_CloudWatch.nodejs | ||
* Configure AWS CloudWatch event rule as trigger | ||
* Schedule: Fixed rate of 5 minute | ||
* Function: RIPEAtlas_CloudWatch | ||
* Input: Constant (JSON text) | ||
* JSON: { "atlasid": "1234567", "target": "www.test.com_IPv6" } | ||
|
||
**Explanation of JSON:** | ||
* atlasid: Measurement of the RIPE Atlas status check | ||
* target: Name of the corresponding metrics in CloudWatch |