Cloud Storage Gateway (CSG) integrates with CloudMonitor, ActionTrail, and Simple Log Service (SLS) to help you monitor resource usage, track operations, and collect gateway logs in real time.
Gateway resource monitoring
You can monitor gateways in real time in the CSG console. For more information, see Monitoring.
On the Monitoring page, select a time range to view metrics for the gateway instance, such as CPU utilization, memory usage, cache disk IOPS, and cache disk read/write throughput.
Health monitoring
Resource health monitoring helps you detect and handle exceptions promptly. For more information, visit Alibaba Cloud Health Status.
On the Alibaba Cloud Health Status page, you can check the health status of each service in different regions and subscribe to Really Simple Syndication (RSS) feeds about service exceptions.
In the service status list, find the service, such as Cloud Storage Gateway (CSG), and click the subscription icon in the RSS column to subscribe to its service issue notifications. A green check mark in the Current Status column indicates that the service is running normally.
Basic monitoring with CloudMonitor
CSG is integrated with Alibaba CloudMonitor, which lets you monitor metrics of cloud resources and Internet applications in real time free of charge, including running status, usage, and exceptions.
You can view CSG resource usage data in the CloudMonitor console or by using the CloudMonitor API. For more information, see Monitoring.
-
Use the CloudMonitor console
In the CloudMonitor console, go to the Cloud Service Monitoring page and select to view monitoring data.
-
Use the CloudMonitor SDK
Call the DescribeMetricList operation to query gateway performance metrics (cpu_user, mem_used_percent, and nfs_used_connection_percent), share performance metrics (cache_used_percent, meta_used_percent, rw_rate, throttling, and upload_rate), and volume performance metric (ol_cache_used_percent).
You can configure alert rules for metrics in the CloudMonitor console. When a rule condition is met, CloudMonitor automatically sends notifications so that you can troubleshoot issues promptly.
Event monitoring with ActionTrail
CSG is integrated with ActionTrail, which monitors and records operations performed by Alibaba Cloud accounts. ActionTrail helps you analyze security risks, detect intrusions, track changes, and perform compliance auditing.
ActionTrail generates logs for cloud service access and usage through the Alibaba Cloud Management Console, API operations, and developer tools. For more information, see Audit events of Cloud Storage Gateway.
By default, ActionTrail retains events for the last 90 days. To retain events longer, create a trail to deliver events to an SLS Logstore as logs or to an OSS bucket as log objects. For more information, see Step 1: Create a trail.
After you create a trail, you can query or analyze the delivered events in the SLS or OSS console. For more information, see Query events in the Simple Log Service or OSS console.
To trace a historical event, submit a ticket to request the required permissions.
Logging
CSG is integrated with SLS. After you enable log monitoring in the CSG console, gateway logs are imported into a specified Logstore for query and analysis, such as checking the synchronization list of gateway files.
To enable log monitoring for CSG, see Enable log monitoring. By default, log data is retained for 30 days. You can change the retention period as needed. For more information, see Modify the configurations of a Logstore.
When you delete a CSG gateway, the corresponding Project and Logstore in SLS are not automatically deleted. To avoid incurring further charges, you must manually delete the Project and Logstore from the SLS console and check the recycle bin for residual resources.