While grouped by year:
date_part('year', redireсt_log.created) as year ... group by year
In the final sample there is both data for 2015, and for 2016. Is it possible to display them together using SQL?
UPD: I get
COUNT("redirect_log", "id", "clicks").