Add datadog metrics

Borrowing heavily from the logic for Datadog events, and Cloudwatch metrics for queueing.