Model Monitoring
Model Studio provides model monitoring for real-time tracking of model calls, call scale, and health, and supports delivering monitoring data to a CloudMonitor Prometheus instance.
Model monitoring overview
Model Studio provides unified model monitoring. After a call occurs, call data is viewable in the monitoring charts within minutes, helping you track model calls in real time. Monitoring data is isolated by workspace: you can view data only for the currently selected workspace. Monitoring data is for reference only and is not used as a billing basis. For reconciliation, view your bill in Expenses and Costs. Log on to the Model Studio console, and in the left-side navigation pane choose Operations > Model Monitoring to open the monitoring overview page.
NoteSupport for monitoring and alerting varies by model: some models—such as speech, image, and video generation models, and third-party models accessed directly—are not supported. Check the console to confirm.
For model call logs and troubleshooting, go to Model Logs; for alert rule configuration, go to Model Alerts.
Filter monitoring data by dimension
You can filter monitoring data by Time (6 hours by default; quick presets and custom), Inference Type, and API key (all by default; shows the ID and description, and lists only API keys that exist in the current workspace). Time-granularity filtering is available only on the model monitoring details page. You can also search by model code.
View overall call scale and health
The overview page shows data cards such as total models, total calls, total failures, average call duration, and average first-token latency, so you can quickly gauge the overall call scale and health.
View monitoring details or logs for a model
The model list shows monitoring data for each model in the current workspace. Click View details to open the model monitoring details page, or click View logs to open the Audit Log tab on the log page (for log features, see Model Logs).
Model monitoring details
On the monitoring overview page, find the target model in the model list and click View details to open its model monitoring details page. The navigation path at the top of the page is: Model monitoring > model name.
The details page shows call statistics and performance charts for a single model and provides an entry to configure alerts:
The details page also provides an entry to configure alerts: the alert bell on a metric chart lets you quickly configure an alert for the current model or metric (for full cross-model rule management, see Model Alerts). The filters are the same as on the overview page (time, time granularity, inference type, and API key), and settings from the overview page are retained when you enter from it. To view logs, return to the model list on the overview page and click the View logs entry.
Monitoring metrics
On the details page, metrics are shown under the Call statistics and Performance metrics tabs. The meaning, reference notes, and alerting support of each metric are listed in the following table.
| Metric | Description | Reference | Alerting support |
|---|---|---|---|
| Calls | Total number of times the model is called | Varies with business | Configurable |
| Usage | Total tokens | Varies with business | Configurable |
| Failures | Number of failed calls | Varies with business | Configurable |
| Failure rate | Failures divided by total calls | Varies with business | Configurable |
| Call duration | Total time from request to response | Varies with model and scenario | Configurable |
| First-token latency | Latency from the request to the first returned token | Varies with model and scenario | Configurable |
| Subsequent-token latency | Average time to generate each token after the first | Varies with model and scenario | Not supported |
| Total model call token consumption | Total tokens consumed, aggregated by model (a metric dedicated to preset alert templates) | Varies with business | Configurable |
| Average usage per request | Average tokens per request | Varies with business | Not supported |
| Content moderation error count | Number of content moderation blocks | Varies with business | Not supported |
| Rate limiting error count | Number of 429 rate-limit triggers | Varies with business | Configurable |
| RPM | Requests per minute | Varies with business | Not supported |
| TPM | Tokens per minute | Varies with business | Not supported |
| Output tokens per second (TPS) | Output tokens per second | Varies with model and scenario | Not supported |
| Cache hit volume | Number of context cache hit tokens | Varies with model and scenario | Not supported |
| Cache hit rate | Proportion of context cache hit tokens to input tokens | Varies with model and scenario | Not supported |
NoteWhether a metric supports alerting depends on whether alert templates support the metric (see
Model Alerts). Metrics that are not supported by templates (such as content moderation error count and RPM) do not show an alert bell and cannot be configured for alerting.In the Performance metrics tab, the charts for call duration, first-token latency, subsequent-token latency, and output tokens per second (TPS) provide P50/P95/P99 percentile data in addition to the average.
For details about error codes and rate limiting, see Error codes.
ImportantTo troubleshoot a surge in failed calls, focus on failures, rate limiting error count, and failure rate. To diagnose performance degradation, watch for a sustained upward trend in first-token latency and call duration, and configure alerts for key metrics.
Alert bell configuration
Metrics that support alerting show an alert bell icon on their chart. Click the bell to open the alert rule configuration side panel; its fields are the same as the alert rule form on the Model Alerts page. The bell icon and the side-panel status labels have the following meanings:
| Type | Status | Color | Meaning |
|---|---|---|---|
| Bell icon | No alert configured | Gray | No alert rule is configured; click to open the configuration side panel |
| Bell icon | Alert configured, normal | Blue | A rule is configured and not currently triggered; click to view rule details |
| Bell icon | Alerting | Red | An alert is being triggered; click to view trigger details |
| Side-panel label | Normal | Green | A rule is configured and its status is normal |
| Side-panel label | Alerting | Red | An alert is being triggered |
| Side-panel label | Disabled | Gray | The rule is turned off and no longer generates alerts |
After you click the bell, the alert side panel shows different fields depending on the alert status (Normal = not triggered, Alerting = currently triggered, Recovered = triggered and then recovered):
| Field | Normal | Recovered | Alerting |
|---|---|---|---|
| Alert rule name | Shown | Shown | Shown |
| Alert rule ID | Shown | Shown | Shown |
| Alert content | Shown | Shown | Shown |
| Alert metric | Shown | Shown | Shown |
| Notification recipients | Shown | Shown | Shown |
| Alert target | Shown | Shown | Shown |
| Start time | Hidden | Shown | Shown |
| Duration | Hidden | Shown | Shown |
| Alert count | Hidden | Shown | Shown |
| Status | Hidden | Shown | Shown |
| Recovery time | Hidden | Shown | Hidden |
Monitoring data delivery
By default, Model Studio stores monitoring metrics on the platform, so you can view them in the console without any delivery. To retain monitoring metrics long term or integrate them with your own O&M systems, enable monitoring data delivery, which automatically delivers the monitoring data to a Prometheus instance of CloudMonitor under your account. The delivery entry is to the right of the title on the monitoring overview page. For how to deliver logs to a Simple Log Service (SLS) Logstore, see Model Logs.
NoteEnabling monitoring data delivery incurs CloudMonitor charges.
Configuration steps
For new users, configuring model monitoring delivery requires the following steps:
- Authorize the CloudMonitor service-linked role.
- Activate the CloudMonitor service.
- Create a CloudMonitor Prometheus monitoring instance.
Model monitoring delivery currently supports only CloudMonitor Prometheus instances, not self-managed Prometheus. For existing users who have already enabled monitoring delivery, the existing configuration is migrated automatically, platform monitoring data is automatically delivered to the previously enabled Prometheus instance, and the Prometheus instance cannot be changed. After delivery is enabled, monitoring data is stored on both the platform side and the user side.
NoteExisting users who have enabled advanced monitoring have monitoring data delivery enabled by default; if you do not need it, you can disable it at the model monitoring delivery entry.
Delivery status
After you configure data delivery, a status indicator is displayed next to model monitoring delivery:
- Delivering (green)
- Delivery failed (red)
- Delivery not configured (gray)
The delivery toggle button is Call statistics and performance metrics delivery. Authorization details are expanded by default.