The Colorado Rockies have agreed to a three-year, $10.4 million contract with Adam Ottavino.

The right-handed reliever receives $1.3 million next year, $2.1 million in 2017 and $7 million in 2018 under the agreement. He would have been eligible for free agency after the 2017 season.

Ottavino, 30, underwent Tommy John surgery on his right elbow in May.