Add Alibaba Cloud service metrics to a namespace and create dashboards to monitor them.
Prerequisites
Make sure that you have created a namespace. For more information, see Create a namespace.
Background
After you add a tag to an Alibaba Cloud service resource, the tag may take up to one hour to appear in Hybrid Cloud Monitoring. The displayed tags may differ from the originals because Hybrid Cloud Monitoring normalizes non-compliant tags for Prometheus protocol compatibility:
-
If a tag does not start with
[a-zA-Z_], the prefixf_is added. For example, the tag66is changed tof_66. -
If a tag contains characters other than
[a-zA-Z0-9_], the invalid characters are replaced with underscores (_). For example, the tagtest.6is changed totest_6. -
If a tag starts with two or more underscores (_), such as
__my_key__or___my_key___, unexpected errors may occur.
Hybrid Cloud Monitoring adds the tag_ prefix to all tags. Non-compliant tags are normalized by the rules above before the prefix is added. For example, the original tag test.6 becomes tag_test_6.
Add Alibaba Cloud service metrics
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose Hybrid Cloud Monitoring > Namespace.
-
Click the number of accounts, services, metrics, or tasks in the Metric data column for the target namespace.
NoteThis number is the total count of metric import tasks from sources such as on-premises data centers, AWS, Tencent Cloud, Prometheus, on-premises logs, and Simple Log Service (SLS).
-
On the Metric management panel, go to the Alibaba Cloud service metrics tab to add metrics for an Alibaba Cloud service.
-
Single account
When you log on to the Cloud Monitor console with an Alibaba Cloud account or a RAM user, you can only connect to Alibaba Cloud services within that account.
-
Add an Alibaba Cloud service.
-
Click the
icon next to Current Account. -
In the Add Product dialog box, select the target Alibaba Cloud service and click OK.
-
-
Add metrics for the Alibaba Cloud service.
-
Click the target Alibaba Cloud service, and then click Add metric.
-
In the Add metric dialog box, select the metrics that you want to add, and then click OK.
-
-
-
Multiple accounts
If you log on to the Cloud Monitor console with a management account, you can connect Alibaba Cloud services from any member account in your Resource Directory to centrally monitor metrics across multiple accounts. For more information about trusted service integration with Resource Directory, see Overview of trusted services.
-
Add a member account.
-
Click Add Account next to All Accounts.
-
In the Add Account dialog box, select the target member account, and then click OK.
-
-
Add an Alibaba Cloud service.
-
Click the
icon next to the target member account. -
In the Add Product dialog box, select the target Alibaba Cloud service and click OK.
-
-
Add metrics for the Alibaba Cloud service.
-
Click the target Alibaba Cloud service, and then click Add metric.
-
In the Add metric dialog box, select the metrics that you want to add, and then click OK.
-
-
-
Delete Alibaba Cloud service metrics
Delete an Alibaba Cloud service along with all its metrics, or delete only specific metrics.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose Hybrid Cloud Monitoring > Namespace.
-
Click the number of accounts, services, metrics, or tasks in the Metric data column for the target namespace.
NoteThis number is the total count of metric import tasks from sources such as on-premises data centers, AWS, Tencent Cloud, Prometheus, on-premises logs, and Simple Log Service (SLS).
-
On the Metric management panel, go to the Alibaba Cloud service metrics tab to delete member accounts, Alibaba Cloud services, or their metrics.
-
Single account
-
Delete an Alibaba Cloud service
Deleting an Alibaba Cloud service also removes all of its metrics.
-
In the Current Account directory, hover over the target Alibaba Cloud service and click the
icon that appears. -
In the Confirm deletion dialog box, click OK.
-
-
Delete specific metrics for an Alibaba Cloud service
-
In the Current Account directory, click the target Alibaba Cloud service. Then, in the panel on the left, select the metrics to delete and click Delete in the lower-left corner.
-
In the Tips dialog box, click OK.
-
-
-
Multiple accounts
-
Delete a member account
Deleting a member account also removes all of its associated Alibaba Cloud services and metrics.
-
Click the
icon next to the target member account. -
In the Confirm deletion dialog box, click OK.
-
-
Delete an Alibaba Cloud service for a member account
Deleting an Alibaba Cloud service for a member account also removes all of its metrics.
-
Under the target member account, hover over the Alibaba Cloud service that you want to delete and click the
icon that appears. -
In the Confirm deletion dialog box, click OK.
-
-
Delete specific metrics for an Alibaba Cloud service for a member account
-
Under the target member account, click the target Alibaba Cloud service. Then, in the panel on the left, select the metrics to delete and click Delete in the lower-left corner.
-
In the Tips dialog box, click OK.
-
-
-