Break down requests by status code
Split your applications' requests by status code, narrow them to one class, rank the hosts that return errors, and compare each code with the origin's answer.
You can split the requests of your applications by the HTTP status code they returned, in Azion Console or with the GraphQL API. Real-Time Metrics reads these numbers from the httpMetrics dataset. For what each chart of the Status Codes dashboard measures, refer to Build dashboards.
Prerequisites
Console
- An Azion account. To create one, refer to Create an account.
- An application served by a workload, with requests in the range you want to read.
- Access to Azion Console. To sign in, refer to How to access Azion Console.
Open the status breakdown
The breakdown counts the requests of every application in your account, one count per status code.
Console
To open the breakdown in Azion Console:
Access Azion Console > Real-Time Metrics.
The page opens on the Build category, the Applications tab, and the Data Transferred dashboard.
The dashboard shows four line charts, HTTP Status Codes 2XX to HTTP Status Codes 5XX, and the Requests by Status and Upstream Status table. Each legend entry totals one series over the range, which starts at Last 5 minutes. To read a longer period, refer to Filters and time range.
Narrow it to one status class
A filter on the status code keeps one class, such as the 5XX server errors. This section keeps the codes from 500 to 599.
Console
To filter the dashboard in Azion Console:
In the filter row, select the filter icon, whose tooltip reads Add filter.
In Filter, select Status.
In Operator, select Between.
Enter 500 in Begin and 599 in End.
A chip under the filter row reads Status between: (500,599). The Requests by Status and Upstream Status table now lists only the pairs whose status is in that range, so a server error is no longer hidden behind the most frequent 200 responses.
Find the hosts that return the errors
With the class filter in place, you can check which hosts return those errors. The API ranks every host in one query. In Azion Console, a second filter narrows the dashboard to one host at a time.
Console
To narrow the 5XX responses to one host in Azion Console, keep the Status filter and add a second one:
In the filter row, select the filter icon, whose tooltip reads Add filter.
In Filter, select Host.
In Operator, select Equals.
Enter the host to check, such as www.example.com.
A second chip reads Host equals: www.example.com. The HTTP Status Codes 5XX chart and the table now count only the 5XX responses of that host. To check another host, select the Host chip and change its value.
Find what the origin answered
The status code is what the client received. The upstream status is what the origin returned. When both carry the same error code, the error came from the origin.
Console
In Azion Console, keep the Status filter and read the Requests by Status and Upstream Status table. Each row pairs a Status with an Upstream Status, and Total counts the requests with that pair. The table lists the 10 most frequent pairs.