High 522 error rate in the last 24hours

Today, our cloudflare has a large number of 522 errors. It seems that there is a timeout from the cloudflare edge to our origin server. How can we test what happened to the edge to the origin network that caused the delay?