This topic describes how to import data from CloudMonitor to Simple Log Service. After you import data from CloudMonitor to Simple Log Service, you can query, analyze, and transform the data.
Prerequisites
A project and a Logstore are created. For more information, see Create a project and Create a Logstore.Background information
Simple Log Service allows you to import data from CloudMonitor to a Logstore as log data or to a Metricstore as metric data. For more information, see Log or Metric. Most data from CloudMonitor is statistical data. We recommend that you store the data imported from CloudMonitor in a Metricstore. For more information, see Import metric data from CloudMonitor to Simple Log Service.Create a data import configuration
Log on to the Simple Log Service console.
- In the Import Data section, click the Monitoring Data tab. Then, click CloudMonitor Data.
Select the project and Logstore. Then, click Next.
Configure the data import settings and click Next.
Parameter
Description
Configuration Name
The name of the data import configuration.
Import All
Select Yes to import all metric data from CloudMonitor to Simple Log Service. For more information, see Predefined metrics.
NameSpace
If you select No for the Import All parameter, select the metrics that you want to import from the NameSpace drop-down list.
AccessKey ID
The AccessKey ID of your Alibaba Cloud account.
We recommend that you use the AccessKey pair of a Resource Access Management (RAM) user that is granted the AliyunCloudMonitorReadOnlyAccess permission.
AccesssKey Secret
The AccessKey secret of your Alibaba Cloud account.
Use Hybrid Cloud Monitoring API
Simple Log Service uses only Hybrid Cloud Monitoring API to pull data from CloudMonitor.
Hybrid Cloud Monitoring allows you to pull the latest data in real time and supports higher queries per second (QPS). You are charged traffic fees when you use Hybrid Cloud Monitoring. For more information, see Hybrid Cloud Monitoring.
View a data import configuration
After you create a data import configuration, you can view the configuration details and related reports in the Simple Log Service console.
In the Projects section, click the project that you want to manage.
- On the tab, find the Logstore that you want to manage and choose .
- Click the name of the data import configuration.
- On the Import Configuration Overview page, view the basic information about the data import configuration and the related reports.
Related operations
On the Import Configuration Overview page, you can perform the following operations:
- Modify the data import configuration.
To modify the data import configuration, click Modify Settings. For more information, see Create a data import configuration.
- Delete the data import configuration. To delete the data import configuration, click Delete Configuration.Important After a data import configuration is deleted, it cannot be restored. Proceed with caution.
- Stop the data import job.
To stop the data import job, click Stop.
FAQ
Issue | Possible cause | Solution |
Some metrics cannot be found. | If Hybrid Cloud Monitoring API is used to pull data, some virtual metrics cannot be pulled. | If some metrics cannot be found after you turn on Use Hybrid Cloud Monitoring API but you can query the metrics by calling the DescribeMetricList operation, the cause is that the metrics are not supported by Hybrid Cloud Monitoring API. To resolve this issue, submit a ticket to CloudMonitor technical support. |
Long data latency exists. |
For more information, see Limits. |
|
Error handling
Item | Description |
Error handling method | After an error occurs, the data import job retries at a regular interval until the job is recovered. You can view the number of errors on the Data Processing Insight dashboard. If the data import job is recovered within 3 hours, the job continues to pull data from the position at which the job stops pulling data due to the error. Otherwise, the data import job continues to pull data from the latest position regardless of the stop position. |