Monitor Amazon API Gateway
The API Gateway view shows every REST, HTTP, and WebSocket API that sends metrics to Dash0. It maps requests from their status class through the region to the API, so you see which API returns the 5XX responses. To open it, go to Infrastructure > AWS > API Gateway.
For the parts that all AWS views share, such as filters, the Map and Table toggle, and Needs attention, see About AWS Service Views.
Requirements
- AWS integration: An AWS account connected to Dash0. See Set Up AWS Integration.
AWS/ApiGatewaymetrics: The view reads CloudWatch metrics of theAWS/ApiGatewaynamespace. Turn the namespace on in the integration's Metrics tab, as described in Collect AWS CloudWatch Metrics. Metrics from a CloudWatch Metric Stream work too. If an account sends both, Dash0 counts each API once.- Detailed metrics in AWS: Needed only for the per-endpoint breakdown. On a REST API, turn on detailed CloudWatch metrics for each stage. On an HTTP API, turn on detailed route metrics for each stage.
The view uses these metrics:
| CloudWatch metric | Used for |
|---|---|
Count | Requests |
MessageCount | Requests of WebSocket APIs, which report messages instead of requests |
5XXError on REST APIs, 5xx on HTTP APIs | 5XX rate, which sets the status |
4XXError on REST APIs, 4xx on HTTP APIs | 4XX rate |
Latency | Avg latency |
IntegrationLatency | Integration latency |
CacheHitCount, CacheMissCount | The Cache hits and misses chart of REST APIs |
Dash0 learns about an API from its metrics. CloudWatch names a REST API by its name, and an HTTP or WebSocket API by its ID. The view therefore shows a REST API under its name and an HTTP or WebSocket API under its API ID.
An API appears once CloudWatch sends AWS/ApiGateway metrics for it. Dash0 identifies an API by its name or ID, region, and account, so the same name in two regions is two APIs.
Fleet Numbers
The cards on top are totals over the selected time range, for all APIs that match the filter:
- Requests: The requests that the APIs received. For WebSocket APIs, these are messages.
- 5XX rate: 5XX responses divided by requests.
- 4XX rate: 4XX responses divided by requests. API Gateway publishes no throttle metric, so throttled requests count here as 429 responses.
- Avg latency: The average of the
Latencymetric over all APIs. Dash0 weights it by the number of samples, so a busy API counts for more than a quiet one. - Integration latency: The same average for the
IntegrationLatencymetric.
The AWS documentation for API Gateway metrics defines both latency metrics.
Read the Map
The map has up to three columns. Requests flow from left to right.
| Column | Shows | A card reads |
|---|---|---|
| Status class | 5XX, 4XX, and No error | The requests and their share of all requests on the map, for example 284 req · 0.6% |
| Region | Each AWS region, the one with the worst API first | The requests and the number of APIs, for example 41.8K · 2 APIs |
| APIs | The APIs and the groups of APIs | The requests, the type, and the account, for example 39.3K req · REST · 100000000001 |
The Region column appears only when the APIs on the map are in more than one region.
- Streams: A stream is as wide as its number of requests. 5XX streams are red, 4XX streams are yellow, and streams without an error are gray. A small error stream stays visible as a thin line. The dots show traffic, and a busier stream draws more of them.
- 5XX rate on the right: An API that needs attention shows its 5XX rate on the right of its card, for example 3.91%.
- Grouped APIs: The first five APIs of Needs attention get their own card. The others fold into more need attention, and all healthy APIs fold into one group such as 3 healthy APIs. Select Show to open a group. An open group lists up to 30 APIs that need attention, or the 10 busiest healthy APIs, and hides the APIs outside the group. To see every API, switch to Table.
- APIs left off the map: APIs with the status Idle or No data have no requests to draw. The footer counts them.
Hover over a status class, a region, an API, or a stream to see its requests. The tooltip of a status class also defines it. The tooltip of an API that needs attention names the stage with the highest 5XX rate. That rate belongs to the stage, so it can differ from the API's rate in Needs attention.
Select a status class or a region to focus the map on it. Dash0 highlights its flows and dims the rest. A card that is only partly in the highlighted flow reads, for example, 159 of 284. Select a stream to keep it highlighted. Select an API to highlight its flows and open its panel. Press Esc to show everything again.
API Status
Dash0 gives each API one of five statuses. Only 5XX responses count.
| Status | Rule |
|---|---|
| Critical | 5XX responses are 1% or more of the requests |
| Attention | The API returned at least one 5XX response, and 5XX responses are below 1% of the requests |
| Healthy | The API received requests and returned no 5XX response |
| Idle | Metrics arrive, but the API received no requests in the time range |
| No data | Dash0 knows the API, but CloudWatch sends no request metrics for it |
The status reads the 5XX rate over the whole selected time range. A different time range can therefore give the same API a different status.
4XX responses never change the status. They come from callers, and they include the 429 responses of throttled requests. The map and the tables still show them.
Stages and endpoints get a status by the same rule, each from its own requests. A stage or endpoint without requests is Idle.
Needs Attention
Needs attention sits beside the map and lists every API with the status Critical or Attention. Critical APIs come first. Within a status, the API with more requests comes first. The list does not sort by 5XX rate, so check the rates before you pick the worst API.
Each entry gives the API's 5XX rate as the reason, for example 5XX 3.91%, and the region and account below it. Hover over an entry to highlight the API on the map. Select an entry to pick the API on the map. If the API was part of a group, it gets its own card. Selecting an entry does not open the panel. Select the API's card on the map for that.
Table View
The table lists every API, the most severe status first. All columns sort. You can also filter from the headers of API, Type, Region, and Account.
| Column | Shows |
|---|---|
| Status | The status. Hover over the info icon in the header to read the rules. |
| API | The name of a REST API, or the ID of an HTTP or WebSocket API |
| Type | REST, HTTP, or WebSocket |
| Region | The AWS region |
| Account | The AWS account ID |
| Requests | The requests in the time range |
| 5XX rate | 5XX responses divided by requests |
| 4XX rate | 4XX responses divided by requests |
| Avg latency | The average of the Latency metric |
| Integration latency | The average of the IntegrationLatency metric |
Region or Account shows a dash when the API's metrics carry no region or account.
API Panel
Select an API on the map or in the table to open its panel. The Overview tab shows:
- Summary: The account, region, and type. Open in AWS console opens an HTTP or WebSocket API in AWS. For a REST API, it opens the list of APIs in the region, because Dash0 knows the API's name but not its ID.
- Health: The status and, when the API received requests, 5XX responses such as 159 of 39.3K, 5XX rate, 4XX rate, and Avg latency. These values cover the whole time range.
- Stage table: The API's stages with their endpoints. See the next section.
- Charts: Requests (stacked by 5XX, 4XX, and Other), Error rate, and Latency (the latency and the integration latency). REST APIs also get Cache hits and misses, whether or not the stage uses a cache. View in Metrics opens a chart's query in the query builder.
The Attributes tab lists the API's resource attributes. To let Agent0 investigate the API, select Ask Agent0.
Stages and Endpoints
The panel has three levels: the API, a stage, and an endpoint.
The stage table on the API level lists the stages, the busiest first. Under each stage, it lists the stage's endpoints, again the busiest first. An endpoint goes by its method and resource, for example GET /orders/{id}. The table shows six endpoints per stage. A link such as Show 6 more endpoints lists the rest.
Each row gives the Status, Requests, 5XX rate, and 4XX rate of the stage or endpoint. Compare the rows to find the endpoint behind an API's 5XX rate.
- Stage level: Select a stage row. The panel shows the stage's summary, health values, endpoint table, and charts.
- Endpoint level: Select an endpoint row. The panel shows the endpoint's summary, health values, and charts.
To return to the API, select the back button, for example Back to checkout-api.
Endpoints come from the detailed metrics that you turn on in AWS, as described under Requirements. A stage lists only endpoints that sent metrics in the time range. Without detailed metrics, the totals, statuses, and charts of the API and its stages still work. WebSocket APIs list no endpoints.
Troubleshooting
- "No API Gateway metrics yet": Dash0 has no
AWS/ApiGatewaymetrics for this dataset and time range. The view shows this message when no AWS account is connected and also when the namespace is off. Check that an account is connected and thatAWS/ApiGatewayis turned on in the integration's Metrics tab. - An API has the status "No data": CloudWatch sends no request metrics for the API. Its panel links to Select the API Gateway metrics on the AWS integration, which opens the integration's Metrics tab.
- "No per-endpoint metrics": The stage sends no detailed metrics. Turn on detailed CloudWatch metrics for the stage of a REST API, or detailed route metrics for the stage of an HTTP API. The stage's panel links to the AWS documentation.
- "We don't show per-endpoint metrics for WebSocket APIs yet": The view has no endpoint breakdown for WebSocket APIs. Use the stage's values and charts.
- "No requests in this time range": No API on the map received requests. Pick a longer time range. The map shows the same message when the filter matches no API, so check the filter too.
- "No API Gateway metrics arrive for these APIs, so there are no flows to map": Every API that matches the filter has the status No data. Turn on the
AWS/ApiGatewaymetrics in the integration's Metrics tab. - "API Gateway API not found": The link names an API, stage, or endpoint that sends no metrics in the current filter and time range. It may be filtered out, deleted, or idle before the time range starts. Pick a longer time range or clear the filter.
- "No APIs match the filter": The table has no API for the current filter. Remove a filter.
- "No access to API Gateway metrics": You need Read access to the dataset. Ask an Admin of your organization.
Further Reading
- About AWS Service ViewsThe layout, statuses, and filters that all AWS views share
- Collect AWS CloudWatch MetricsChoose the namespaces and metrics that Dash0 scrapes
- Scraping vs. Metric StreamsCompare the two ways to send CloudWatch metrics to Dash0
- Monitor Amazon SQSFind the queue where messages get stuck
Last updated:

