Added metrics to cpp brokers