Skip to main content

Model Alerts

Model Studio provides alert rules, alert templates, and alert history. You can configure alerts based on monitoring metrics and notify contacts or contact groups to detect call anomalies in time.

Model Studio provides three alerting features—alert rules, alert templates, and alert history—all located under the Alert rules, Alert templates, and Alert history tabs on the Model Alert page. Alerts are triggered based on Model Monitoring metrics; the configurable metric scope is listed in the metric table in the Model monitoring details section.

Alert rule management

On the Model Alert page, click the Alert rules tab to open the alert rule management page. The alert rule list shows all alert rules in the current workspace and their enabled status. You can create, edit, stop, and delete rules from the list. The list displays the following columns: Alert name, Alert content, Alert level, Enabled status, Alert contact/group, Model selection, Creation time, and Actions, and supports searching by alert name or alert rule ID. Notifications can be sent through multiple channels such as email. The full path to set up alerting for the first time: first complete the CloudMonitor service-linked role authorization in Monitoring data delivery (if it is not authorized, the Create alert rule button is not clickable, and hovering over it shows the tip: "The CloudMonitor service-linked role is not authorized, so you cannot create an alert rule. Click to authorize"), then create an alert rule in this section (select an alert template and fill in the fields), and finally configure alert notifications (contacts or contact groups, notification time range, and repeat policy).
To control token costs, configure a spike alert for "Total model call token consumption". To ensure availability, configure an alert for the "failure rate". Both can be quickly created based on a preset alert template.
After authorization, CloudMonitor, Alibaba Cloud Simple Log Service (SLS), and Prometheus are automatically activated. Alert rules are free to use; already-activated products are billed based on actual usage.
  1. Click Create Alert Rule; it opens in a new browser tab.
  2. Fill in the alert name, alert template, model selection, duration, alert check period, alert content, and alert level as described in the field descriptions below.
  3. Configure alert notifications (alert contacts or contact groups, notification time range, and repeat policy), and then click Create to finish.
Create alert rule page
The form fields are described in the following table.
FieldRequiredDescription
Alert nameRequiredUp to 50 characters
Alert templateRequiredSelect a preset or custom template from the drop-down list, save an existing template as a new one, or click Create alert template to create one directly
Model selectionRequiredUp to 50 models
DurationRequiredChoose to raise an alert event as soon as the alert condition is met, or only after the condition persists for the specified number of minutes
Alert check periodRequiredDefault 60 seconds, in seconds; must be an integer no less than 0 (0 means alert immediately when triggered)
Alert contentRequiredUp to 200 characters; supports variables (you can insert placeholders such as workspace, model, and current value)
Alert levelOptionalGeneral/Warning/Error/Urgent. Default General
Alert contacts/contact groupsMultiple allowedSourced from CloudMonitor contacts or contact groups; you can also click New Alert Contact/New Alert Contact Group to create one directly
Notification time rangeRequiredAny interval within 24 hours, and can span days (for example, 23:00 to 01:00 the next day)
Repeat policyRequiredChoose no escalation (the alert is sent only once when it occurs), or repeat notifications at a specified interval of hours and minutes while the alert is unresolved
Existing users who have enabled advanced monitoring and configured alert rules can migrate alert rules from the CloudMonitor Prometheus instance to Model Studio with one click. Currently, only alert rules created by the platform can be migrated; alert rules created on the CloudMonitor side cannot be migrated.
  1. Above the alert rule list, click Migrate now or Migrate alert rules.
  2. Confirm the migration source. View the Prometheus instance name and status, and then click Start detection.
  3. Check alert rules. The system detects which alert rules can be migrated and which are incompatible. Select and confirm them, and then click Start migration.
  4. Migrate alert rules. During migration, a "Migrating" status is displayed. When migration finishes, the success or failure result is displayed. If migration fails, you can retry. After a successful migration, close the dialog box.
After migration, the alert rules in the Prometheus instance are disabled (not deleted); you can manually delete them on the Prometheus side. The migration task is retained for 6 hours, and refreshing the page during migration does not interrupt the task. After a successful migration, no second migration is needed, the migration entry is hidden, and only an inline success message is shown. Alert rules support the stop, edit, and delete operations.

Alert templates

An alert template is an alert configuration with preset trigger conditions. You can quickly create alert rules based on a template without configuring from scratch. The system provides 12 preset templates, and you can also create your own. Click Create Template to open the Create Alert Template side panel, and fill in the following information:
  • Template name: Required, up to 20 characters.
  • Parameter: Up to 10 condition parameters (each parameter is a "metric + threshold" rule). Choose the condition combination: an alert is triggered when all metrics meet the conditions (&&), or when any metric meets the condition (||).
  • Metric: Required. Selects the metric to monitor for alerting. The drop-down options include calls, failures, failure rate, call duration, and first-token latency.
  • Aggregation method: Required. Selects how the metric is calculated (such as sum or average).
  • Alert threshold: Required. Select a comparison operator (>, >=, <, <=, ==, !=) and a value.
  • Statistical period: In minutes. Valid range 1 to 10080 minutes.
Preset alert templates are marked with a Preset tag after the name and support the Details and Copy actions, but not editing or deletion. Custom alert templates support the Details, edit, delete, and Copy actions. Use preset templates first to cover common alerting scenarios (the metric and threshold are preset for typical loads); just fill in the parameters to use them. Use custom templates for complex composite conditions and business-specific rules.
Alert template list (preset templates)
The metrics supported by preset alert templates are listed in the following table.
Preset alert template nameMetric
Model call failures > 10 within 1 minuteModel call failures
Model call failure ratio > 1% within 1 minuteModel call failure ratio
Model 4xx calls > 10 within 1 minuteModel 4xx calls
Model 4xx call ratio > 1% within 1 minuteModel 4xx call ratio
Model 429 calls > 10 within 1 minuteModel 429 calls
Model 429 call ratio > 1% within 1 minuteModel 429 call ratio
Model 5xx calls > 10 within 1 minuteModel 5xx calls
Model 5xx call ratio > 1% within 1 minuteModel 5xx call ratio
Model calls > 500 within 1 minuteModel calls
Average model call duration > 60 seconds within 1 minuteAverage model call duration
Average model first-token latency > 10 seconds within 1 minuteAverage model first-token latency
Total model call token consumption > 10,000 within 1 minuteTotal model call token consumption

Alert history

On the Model Alert page, click the Alert history tab to view alert trigger records. In the alert history list, the alert contact/group shows only contact information, not the related notification channels.
Alert history before September 3, 2026 is available in the CloudMonitor console.
Alert history can be filtered by alert time (6 hours by default; quick presets and calendar) and status (Recovered/Alerting), and supports searching alert rules. The alert history list displays the following columns.
ColumnDescription
Alert instanceAlert instance identifier
Alert levelGeneral/Warning/Error/Urgent
Alert timeWhen the alert was triggered
Alert countNumber of times this alert was triggered
Alert ruleAlert rule name and ID
StatusRecovered/Alerting
Alert contact/groupAlert contacts or contact groups
ActionsView details (opens the alert details side panel)
Click View details in the list to open the alert details side panel. The status in the details side panel has only two values: Recovered and Alerting.