Atletico Madrid captain Gabi has signed a one-year contract extension that keeps him at the club until June 2018.