Integrate the metrics and logs of Cloud-native API Gateway with Cloud Monitor 2.0 to enable unified gateway monitoring.
Prerequisites
-
You have an active Cloud-native API Gateway service instance.
-
You have activated Managed Service for Prometheus and Hybrid Cloud Monitoring.
-
If you use a RAM user for the integration, you must grant the
AliyunCloudMonitorFullAccesssystem policy to the user.
Billing
-
Metric integration incurs fees for real-time data export from Hybrid Cloud Monitoring and Managed Service for Prometheus.
-
Simple Log Service (SLS) pricing applies to log integration.
Procedure
-
Log on to the Cloud Monitor 2.0 console. After selecting a workspace, click Integration Center in the left-side navigation pane, and then click CNAPIGateway to start the integration.
-
Enter or select a Policy name, and select the entity scope.
-
Select the observability data that you want to integrate and click OK.
Observability data
Description
integration name
Optional. A name for the integration.
Cloud-native API Gateway metric monitoring
Enables gateway performance monitoring. After integration, you can view and configure key metrics such as QPS, latency, error rate, and CPU/memory usage.
Cloud-native API Gateway logs
Enables gateway log collection. After integration, the system collects and stores detailed request logs, including request time, source IP address, request URI, and response status code. Use the logs for auditing and troubleshooting.
-
After the integration, you can view the integrated entities and their observability data in Entity Explorer.
Storage policy
When you integrate a Cloud-native API Gateway instance, Cloud Monitor automatically creates an SLS Logstore and a Managed Service for Prometheus instance to store the observability data.
|
Type |
Default storage location |
Remarks |
|
metrics |
Managed Service for Prometheus instance: RegionShare:{{workspaceName}}:{{regionId}} |
None |
|
logs |
SLS project: aliyun-product-data-{{userId}}-{{regionId}} SLS Logstore: apig-access-log |
None |
Modify or remove integration policy
To modify or remove a Cloud-native API Gateway integration, go to the Integration Management page in Integration Center. Find the integration policy and click Edit or Delete.