This topic describes how to import metric data from CloudMonitor to Simple Log Service. After the data is imported, you can perform multiple operations on the metric data in Simple Log Service. For example, you can query, analyze, and transform the metric data.
Prerequisites
A project and a Metricstore are created. For more information, see Create a project and Create a Metricstore.
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 Metricstore. Then, click Next.
In the Import Configuration step, configure the parameters and click Next.
Parameter
Description
Job Name
The name of the data import configuration.
Display Name
The display name of the data import job.
Job Description
The description of the data import job.
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.
AccessKey Secret
The AccessKey secret of your Alibaba Cloud account.
View the 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 Metricstore 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.
WarningAfter 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.
What to do next
Query and analyze data
After the data is imported to Simple Log Service, you can query and analyze the data on the query and analysis page of the Metricstore. For more information, see Query and analyze metric data.
Visualize data in Simple Log Service
Simple Log Service automatically creates a host monitoring dashboard in the project. In the dashboard, you can view query and analysis results, configure alerts, and perform other operations. For more information, see Overview of visualization.
Visualize data in Grafana
Simple Log Service allows you to send metric data to Grafana for visualization. For more information, see Send time series data from Simple Log Service to Grafana.