Refactored the broker level metrics to facilitate further metric addition.