CloudMonitor tracks Simple Log Service metrics such as write traffic, QPS, and service status. You can create alert rules to detect anomalies in log collection and shard usage.
Prerequisites
To let a RAM user view CloudMonitor metrics, grant the user read-only (AliyunCloudMonitorReadOnlyAccess) or read/write (AliyunCloudMonitorFullAccess) permissions. Create a RAM user and grant permissions.
View CloudMonitor metrics
Log on to the Simple Log Service console.
In the Projects section, click the one you want.

-
On the tab, find the Logstore and click .

-
View the monitoring metrics.
Metric descriptions
|
Cloud Monitor metrics |
Description |
|
Write Traffic |
The size of data written to the Logstore per minute. |
|
Size of Raw Data |
The uncompressed size of data written to the Logstore per minute. |
|
Overall QPS |
The QPS for all operations. |
|
Number of operations |
The number of API operations per minute. API overview. |
|
Service Status |
HTTP status code counts for all operations. |
|
Traffic resolved successfully |
The size of raw log data successfully collected by Logtail. |
|
Lines resolved successfully |
The number of log lines successfully collected by Logtail. |
|
Lines failed to be resolved |
The number of lines that Logtail failed to collect. Non-zero values indicate errors. |
|
Number of client errors |
The number of Logtail collection errors. |
|
Number of machines with client errors |
The number of machines that reported Logtail collection errors. |
|
Error IP statistics |
The IP address count per log collection error type. To troubleshoot, locate the error IP, log on to the machine, and check /usr/local/ilogtail/ilogtail.LOG. |
|
Written lines |
The number of rows written to the Logstore per minute. |
|
Read Traffic |
The size of data read from the Logstore per minute. |
|
Consumption lag time |
The delay between the latest written data and current consumption progress. In a consumer group, this is the maximum delay across all shards. |
Set CloudMonitor alert rules
Configure alert rules for Simple Log Service in CloudMonitor. When a metric meets the specified conditions, CloudMonitor sends an alert notification by text message or email.
Set alert rules for cloud service resources. Cloud Monitor sends notifications when alert conditions are met.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
-
On the Cloud Service Monitoring page, select a cloud service and configure alert rules for Metric Monitoring or Quota Monitoring.
-
Metric Monitoring: Click a cloud service to open its resource list.
-
Find the target resource and click Alert Rules in the Actions column.
-
On the Alert Rules page, click Create Alert Rule.
-
In the Create Alert Rule panel, configure the alert rule parameters.
-
Click Confirm.
-
-
Quota Monitoring: Click a cloud service to open its resource list. Set alert rules for resources under General Quotas or API Rate Limits.
-
Find the target resource and click Alert Rules in the Actions column, or click Global Alert Rule in the upper-right corner.
NoteGlobal Alert Rules: Alert rules that apply to all resource quotas of the target cloud service.
-
Click Create Alert Rule and configure the alert rule parameters.
-
Click OK.
-
NoteAlert rule parameters: Create an alert rule.
-
View CloudMonitor alert rules
View all alert rules configured for a cloud service on its monitoring page.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
-
On the Cloud Service Monitoring page, click a cloud service to open its resource list. View alert rules for Metric Monitoring or Quota Monitoring.
-
Find the target instance and click Alert Rules in the Actions column.
> Monitor