API Gateway provides monitoring and alerting at the region, API group, and API levels. To monitor outbound connection pools, configure alert rules using Simple Log Service.
View monitoring data
API Gateway monitoring data is available at the following levels:
Region monitoring
Instance monitoring (dedicated instances only)
API group monitoring
API monitoring
See View monitoring data.
Configure alerting for APIs
Use CloudMonitor to set up alerting for APIs published in API Gateway. See Configure alerting for APIs.
Configure an alert rule for an outbound connection pool
Simple Log Service lets you configure alert rules by specifying a check frequency and trigger conditions. Alerts fire automatically when the conditions are met.
When a connection pool is fully occupied, API Gateway returns the Backend service connect failed 'Connection lease request time out' error to the client for excess requests. This error is recorded in the errorMessage field in logs, and you can use it to configure an alert rule.
See Configure an alert rule in Simple Log Service and Configure an alert rule for an outbound connection pool.