added support for setting metric credentials on the service

removed credentials from metric to metricBatch