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.
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).
The form fields are described in the following table.
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.
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:
The metrics supported by preset alert templates are listed in the following table.
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 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.
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.
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).
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.
- Click Create Alert Rule; it opens in a new browser tab.
- 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.
- Configure alert notifications (alert contacts or contact groups, notification time range, and repeat policy), and then click Create to finish.

| Field | Required | Description |
|---|---|---|
| Alert name | Required | Up to 50 characters |
| Alert template | Required | Select 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 selection | Required | Up to 50 models |
| Duration | Required | Choose 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 period | Required | Default 60 seconds, in seconds; must be an integer no less than 0 (0 means alert immediately when triggered) |
| Alert content | Required | Up to 200 characters; supports variables (you can insert placeholders such as workspace, model, and current value) |
| Alert level | Optional | General/Warning/Error/Urgent. Default General |
| Alert contacts/contact groups | Multiple allowed | Sourced from CloudMonitor contacts or contact groups; you can also click New Alert Contact/New Alert Contact Group to create one directly |
| Notification time range | Required | Any interval within 24 hours, and can span days (for example, 23:00 to 01:00 the next day) |
| Repeat policy | Required | Choose 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 |
- Above the alert rule list, click Migrate now or Migrate alert rules.
- Confirm the migration source. View the Prometheus instance name and status, and then click Start detection.
- 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.
- 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.
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 template name | Metric |
|---|---|
| Model call failures > 10 within 1 minute | Model call failures |
| Model call failure ratio > 1% within 1 minute | Model call failure ratio |
| Model 4xx calls > 10 within 1 minute | Model 4xx calls |
| Model 4xx call ratio > 1% within 1 minute | Model 4xx call ratio |
| Model 429 calls > 10 within 1 minute | Model 429 calls |
| Model 429 call ratio > 1% within 1 minute | Model 429 call ratio |
| Model 5xx calls > 10 within 1 minute | Model 5xx calls |
| Model 5xx call ratio > 1% within 1 minute | Model 5xx call ratio |
| Model calls > 500 within 1 minute | Model calls |
| Average model call duration > 60 seconds within 1 minute | Average model call duration |
| Average model first-token latency > 10 seconds within 1 minute | Average model first-token latency |
| Total model call token consumption > 10,000 within 1 minute | Total 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.
| Column | Description |
|---|---|
| Alert instance | Alert instance identifier |
| Alert level | General/Warning/Error/Urgent |
| Alert time | When the alert was triggered |
| Alert count | Number of times this alert was triggered |
| Alert rule | Alert rule name and ID |
| Status | Recovered/Alerting |
| Alert contact/group | Alert contacts or contact groups |
| Actions | View details (opens the alert details side panel) |