Limit the size of a single datagram and send multiple datagrams if you have more metrics than can fit into a single UDP packet