Communication with the metrics server.