[SPARK-3377] [Metrics] Metrics can be accidentally aggregated(Another solution)

This PR is another solution for #2250 

Closes #2250 
Closes #1067
Really minor nit, but do you mind swapping the order of `appId` and `workerUrl` so that the order of the command-line options matches the order of the constructor arguments?