SPARK-3901 Add SocketSink capability for Spark metrics