Monitoring method | Description | Advantage and disadvantage | Scenario |
Use CloudLens for SLS to monitor Simple Log Service (recommended) | Manages all projects and Logstores that match specified conditions within your Alibaba Cloud account in a centralized manner. For more information, see Limits. Enables log collection for instance logs and global logs with a few clicks and manages the log collection status in a centralized manner. Instance logs are classified into important logs, detailed logs, and job operational logs. Global logs are classified into audit logs, billing logs, error logs, and metrics. Provides the following types of reports: Overview, Access Monitoring, Collection Monitoring, Operation Monitoring, Job Monitoring, Quota Monitoring, SQL Quality Monitoring, and Billable Resource Monitoring. Creates alert rules to monitor the usage of resources, such as projects, Logtail, and consumer groups. Not charged for the CloudLens for SLS application. However, you are charged for the important logs, job operational logs, and billing logs that are generated after you enable the application. For more information about the billing of the logs, see CloudLens for SLS.
| Advantages: directly analyzes log items, such as errors, the API response time, and user behavior, and provides various reports. Business-level alerts can be triggered based on the log content. Disadvantages: Cannot monitor system resources, such as CPU and memory. | Real-time business issue identification-related scenarios, such as API error rate and transaction failure analysis. User behavior analysis-related scenarios, such as logon failure and URL redirection. Distributed tracing-related scenarios, such as microservices call chain anomalies.
|
Use CloudMonitor to monitor Simple Log Service | Provides a limited number of CloudMonitor metrics, including the data traffic written to a project, overall QPS, raw data size, lines successfully resolved by the client, and read traffic. For more information, see CloudMonitor metrics. Creates alert rules in CloudMonitor to monitor exceptions in log collection and shard usage. Free of charge.
| Advantages: Monitors basic metrics of Simple Log Service and seamlessly integrates with the Alibaba Cloud ecosystem. Disadvantages: Supports only default metrics and cannot directly analyze log text content. | Performance monitoring-related scenarios, such as data ingestion rate and query latency. Infrastructure health check-related scenarios, such as node availability.
|