Add support for sending metrics over UDP.