Small example of writing a custom cloudwatch metric