Skip to content

parachutehealth/aws-internal-healthcheck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Internal Healthcheck

Perform healthchecks on private IP or private FQDN (Private Route53). Healthchecks status are pushed to Cloudwatch custom metrics.

Parachute Health modified from original source.

Setup

AWS Route53 healthchecks cannot target private endpoint within a private VPC. This lambda function will try to perform an healthcheck and send metrics to Cloudwatch. Metric value will be:

  • 1 for Healthcheck OK
  • 0 for Healthcheck Not OK
  • none if no healthcheck has been performed (if this lambda failed to run)

Once this healthcheck metrics are in Cloudwatch, it's up to you to:

  • Schedule it (using Cloudwatch Events)
  • Configure an Alert (using Cloudwatch Alerts)

Configuration

Env Variable Default Description
PROTOCOL http http or https
HOSTNAME localhost Hostname or IP address
PORT 80 Port to test
URL_PATH / Path to test
CA_CERT_PATH internal.crt Filesystem path to CA root cert
METRIC_NAME MyService Name of the Cloudwatch metrics
METRIC_ENVIRONMENT production Environment name to separate Cloudwatch metrics
METRIC_NAMESPACE HealthCheck Namespace of the Cloudwatch Metric

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.2%
  • Shell 2.8%