[SPARK-4634] Enable metrics for each application to be gathered in one node

Added configuration for adding top level name to the metrics name.