hamlet-io / engine

Framework for managing cloud infrastructure via templates. It is part of the broader Hamlet devops framework.
GNU General Public License v3.0
5 stars 5 forks source link

New Component - healthcheck monitors #1653

Closed roleyfoley closed 3 years ago

roleyfoley commented 3 years ago

Expected Behaviour

I can define and deploy synthetic transaction monitoring services through hamlet. They focus on the monitoring of HTTP based services and perform a defined list of tasks against a provided endpoint.

The monitor should run on a regular interval and report on failures of the tasks they have to do.

Then component should support simple and complex tasks, simple being a standard definition of healthcheck style monitor and the complex tasks would be scripted task that is completed by the monitoring service

An example of the simple implementation would be uptime robot ( https://uptimerobot.com/ ) and for the complex type AWS Canary monitors ( https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries.html )

Current Behaviour

not currently supported in hamlet and configured manually

Possible Solution

Add a new component called healthcheck which handles this configuration and can deploy these styles of checks.

Context

Include monitoring services as part of a solution deployment, these are an important concept in a deployed solution so this would be good to include as an automated deployment

roleyfoley commented 3 years ago

Done and confirmed working

Note in AWS the basic health check needs to be in us-east-1 to make sure we get cloudwatch metrics