Build CloudMonitor alert rules with metric thresholds, escalation policies, and multi-channel notifications.
Last verified: May 2026
Build CloudMonitor alert rules with metric thresholds, escalation policies, contact groups, and multi-channel notifications.
Required Fields
alertNamenamespacemetricRulesOutput will appear here...The builder collects alert name, severity, namespace (Alibaba service), metric, dimensions (instance, region, tag), threshold (comparison + value), evaluation window, consecutive-period requirement, and notification contacts. It validates against CloudMonitor's metric catalog and emits `alicloud_cms_alarm` Terraform resources.
Alibaba Cloud Monitor collects metrics across Alibaba services with built-in dashboards and configurable alert rules. The CloudMonitor Alert Builder generates alert rule definitions including metric, threshold, escalation policy, and multi-channel notifications (SMS, email, webhook, DingTalk). Output is Terraform-ready and matches `alicloud_cms_alarm`.
On-call has been getting woken up by transient metric spikes — alerts fire and recover before anyone can investigate. You regenerate the alert ruleset with reasonable evaluation windows (5-15 minutes), consecutive-violation thresholds (require 3 periods), and proper tag-based targeting. The next month, alert volume drops by 70%, and the remaining alerts are all signal.
Use evaluation windows and consecutive-violation thresholds to avoid flapping. An alert that triggers on a single metric spike is noise; an alert requiring 3 consecutive 5-minute windows is signal.
Document alert runbooks. An alert at 3am with a clear pointer to the response procedure beats one that produces only 'high CPU on ECS i-xxx, what does that mean?'
Most metrics are reported at 1-minute granularity for current data and 5-minute granularity for older data. For sub-minute granularity, you'd need to push custom metrics from your application via the CloudMonitor API. Alibaba's defaults are appropriate for most infrastructure monitoring; application-level metrics often benefit from finer granularity.
Yes — alerts can target specific resources, resources matching tags, or entire resource groups. Tag-targeted alerts are recommended for production fleets so new resources automatically inherit the alert policy when tagged appropriately.
Was this tool helpful?
Disclaimer: This tool runs entirely in your browser. No data is sent to our servers. Always verify outputs before using them in production. AWS, Azure, and GCP are trademarks of their respective owners.