How to monitor up stream's targets

Basically, I want to figure out how many times target down in the past, some sort of graph