Simple monitoring library that leverages serverless framework.
The goals of this library are to:
- Provide a simple interface to monitor website health
- Provide a low-overhead and cost effective solution
The library uses the following Amazon Web Services (AWS) services:
- Lambda
- CloudFormation
- CloudWatch
- IAM
- S3
- SES (optional)
- SNS (optional)
The monitor will check status at the configured interval and assert the expected status. If the assert fails then a notification will be generated.
- Configure
custom
values inserverless.yml
.- email: email to receive notification on failures (SNS will require verification)
- frequency: frequency to perform check (seconds, minutes, hours, i.e. 30 seconds)
- topicArn: your sns topic ARN
- Configure your monitors in
monitors.json
.[ { "url": "https://www.jonathanyu.xyz", "expectedStatusCode": 200 }, { "url": "https://www.github.com", "expectedStatusCode": 200 } ]
- Run
serverless deploy