Add explicit support for detecting bad latencies and ratios

@r0mant @jeremyschlatter please review