AI Gateway provides observability for Agent APIs. You can use the statistics module in the AI Gateway console to view request and response information to help you monitor, record, and analyze logs.
Procedure
In the AI Gateway console, go to the Instance page. From the top menu bar, select the region where your target instance is located.
On the Instance page, click the target gateway instance ID.
In the navigation pane on the left, click Agent API, then click the target API Name.
Click the Statistics tab to view the apig-agent-api-dashboard. The key metrics for Agent API observability are as follows:
NoteIf log delivery is not enabled for the gateway, click Enable Log Shipping. Select a Simple Log Service project to enable the feature. After you enable log delivery, you can use Simple Log Service to collect, analyze, and display logs from the gateway.
QPS: The number of Agent API requests per second.
Request success rate: The percentage of successful Agent API requests.