Metric or MED ranks sixth in the list of how BGP checks attributes to choose the best path. It is the only attribute that can be used to try and influence other Service Providers (remote AS). Lower values are better.
To set metric for all routes:
router bgp 5500
Alternatively, metric can be set in a route-map “set metric x”