You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lambda-watchtower is a script for monitoring one or several HTTP(S) endpoints with AWS Lambda.
Logs are stored as AWS CloudWatch metrics.
Usage
lambda-watchtower supports the following event parameters:
{
"targets": [
{
"url": "https://example.org",
"name": "example.org", //Optional, defaults to url; Display name of the target
},
{
"name": "Mailserver SMTP port check",
"type": "port",
"hostname": "mailserver.example.org",
"port": 25
}
],
"namespace": "Watchtower", //Optional, defaults to "Watchtower"; CloudWatch namespace
"timings": ["readable", "total"], Optional, defaults to ["readable", "total"]; Determine which timings are logged.
"timeout": 2000 //Optional, defaults to 2000: Time in ms before requests are aborted
}
Supported Timings
The following timings are supported and can be logged by lambda-watchtower:
lookup: Time between beginning of request and successful DNS lookup
connect: Time between DNS lookup and TCP connect
secureConnect: Time between TCP connect and completion of HTTPS handshake
readable: Time between successfully establishing the connection (and HTTPS handshake) and first byte received
close: Time between first byte and the end of the request
total: Total time from the beginning to the end of the request