You can create namespaces in the CloudMonitor console to store the metrics of self-managed data centers, Alibaba Cloud services, and cloud services of third-party providers. You can also create monitoring dashboards for metrics and view monitoring charts on the dashboards. This topic describes how to create a namespace in CloudMonitor.
Prerequisites
Simple Log Service is activated.
Hybrid Cloud Monitoring is activated. For more information, see Activate Hybrid Cloud Monitoring.
Create a namespace
This topic uses how to store metric data in Simple Log Service as an example.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose .
On the Namespace page, click Create Namespace.
In the Manage Namespace panel, enter a name for the namespace and select Log Service for Data Storage Scheme. Retain the default settings of other parameters.
Table 1. Parameters of a namespace
Parameter
Description
Namespace
The name of the namespace.
Data Storage Scheme
The storage scheme of metric data. Valid values:
Log Service: The metric data is stored in the Logstore of a project in Simple Log Service.
Cloud Monitoring Storage: The metric data is stored in the private storage space provided by CloudMonitor and can only be accessed and used in the CloudMonitor console.
NoteFor more information about the storage schemes of metric data, see Storage schemes of metric data in Hybrid Cloud Monitoring.
Region
The region where the metric data is stored.
Retention Period
The storage duration of metric data in CloudMonitor. Valid values:
cms.s1.large (Retention Period 15 Days)
cms.s1.xlarge (Retention Period 32 Days)
cms.s1.2xlarge (Retention Period 63 Days)
cms.s1.3xlarge (Retention Period 93 Days) (default)
cms.s1.6xlarge (Retention Period 185 Days)
cms.s1.12xlarge (Retention Period 367 Days)
cms.s1.36xlarge (Retention Period 1095 Days)
cms.s1.60xlarge (Retention Period 1825 Days)
cms.s1.120xlarge (Retention Period 3650 Days)
For information about the billing for different retention periods, see Pricing.
Namespace Description
The description of the namespace.
Click OK.
View metric data in the Simple Log Service console.
On the Namespace, click the icon next to Log Service in the Storage Scheme column of the namespace.
You are redirected to the destination Metricstore page in the Simple Log Service console. You can query and analyze the metric data. For more information, see Query and analyze logs.
What to do next
For information about how to modify or delete a namespace, see Manage namespaces.
After you create a namespace, you can import Simple Log Service logs to CloudMonitor. Then, you can create a monitoring dashboard to view the monitoring charts of specific metrics and configure alert rules. For more information about how to configure a dashboard, see Overview.
For more information about how to create a metric import task for Simple Log Service logs, see Manage metrics for logs imported from Simple Log Service.
For more information about how to create a dashboard, see Create a custom dashboard.
For more information about how to configure alert rules, see Create an alert rule.
After metrics are dumped from a Hybrid Cloud Monitoring namespace to Simple Log Service, you can query, analyze, download, ship, and transform the metrics. You can also create alert rules for the metrics. For more information, see Common operations on logs of Alibaba Cloud services.