tencent cloud

ドキュメントCloud Model Routing

Configuring an Alarm Policy

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-27 16:14:20
AI翻訳・品質チェック済み
This document describes how to create an alarm policy.

Introduction

You can set threshold alarms for performance consumption metrics based on the monitoring types supported by TCOP, so that you can be notified promptly to take measures when exceptions occur. An alarm policy consists of five required components: name, policy type, alarm trigger condition, alarm object, and alarm notification template. You can create an alarm policy by following the instructions below.
Term
Definition
alarm policy
It consists of alarm name, alarm policy type, alarm trigger condition, alarm object, and alarm notification template.
alarm policy type
The alarm policy type is used to identify the policy category, and types correspond to cloud products. For example, if you select a Cloud Virtual Machine (CVM) policy, you can customize an alarm for metrics such as CPU utilization and disk utilization.
alarm trigger condition
It is a semantic condition consisting of a metric, a comparison relationship, a threshold, a statistical granularity, and N consecutive monitoring data points.
Monitoring Type
Includes cloud product monitoring, APM, RUM, CAT, and terminal performance monitoring.
notification template
Multiple policies can reuse a template with one click, which is suitable for receiving alarm notifications in various scenarios.

Operation Steps

1. Log in to the TCOP console.
2. Choose Alarm Management > Alarm Configuration to go to the alarm policy configuration page.
3. Click New Policy > Custom Alarm Configuration to configure an alarm policy. The configuration instructions are as follows:
Configuration Type
Configuration Item
Description
Basic Information
Policy Name
Custom policy name.
Remarks
Custom policy remarks.
Associated Tag
After selecting tags for the policy, you can manage the policy by tag. Multiple tags can be associated with the policy.
Alarm Rule Configuration
Monitoring Type
Supports cloud product monitoring, CAT, RUM, terminal performance monitoring, and APM. You can select cloud product monitoring.
Policy Type
Select the cloud product policy type that you want to monitor. You can select CMR.
Policy Project
After the project for the policy is selected, the policy permissions will be consistent with the project permissions. This also makes it easier to manage the policy by project.
Alarm Object
The dimensions for alarm objects vary with cloud product policies. Some cloud product policies only support filtering alarm objects by a single dimension, while others support filtering alarm objects by multiple fields, which enables more precise matching and triggering of alarm rules.
Single alarm object: You can filter alarm objects by instance ID, instance group, or tag, or directly select all instance objects as alarm objects. The tag feature helps you quickly filter cloud resources bound with tags. When instances under a tag scale out or in, the alarm policies are updated simultaneously, reducing the secondary modification cost.
Multi-dimensional alarm objects: You can filter alarm objects by multiple fields such as Region, Cluster, and Node. You can also combine multiple filter fields, which helps you define more complex alarm conditions.
Triggering Conditions
An alarm trigger condition is a semantic condition composed of metrics, comparison relationships, thresholds, statistical granularity, and N consecutive monitoring data points. You can customize metric alarm and event alarm trigger conditions, configure alarm metrics, statistical granularity, alarm thresholds, alarm severity, and alarm frequency based on business needs, or directly use trigger condition templates and preset trigger conditions.
Alarm Notification Configuration
Alarm Notification Template
You can choose system preset notification templates and user-defined notification templates. Each alarm policy can be bound to up to three notification templates.
Advanced Configuration
Auto Scaling
Some cloud products support auto scaling. After authorization and successful configuration, the auto scaling policy can be triggered when the alarm condition is met.
4. After configuring the above information, click Finish to successfully create the alarm policy.

Basic Description of Alarm Dimensions

You can create alarms for the instance metrics that you are concerned about, so that when the running status of a CMR instance meets a certain condition, alarm information is sent promptly to the user groups that you care about. This ensures that you can detect exceptions in a timely manner and take appropriate measures to maintain system stability and reliability.
Alarm policies include the following types:
Instance
Model
User Group
APIKey

Description of Alarm Policies in the Instance Dimension

Alarm Policy Type
Alarm Policy
Alarm Metric
Unit
Description
Instance
Core Usage
Total number of tokens
Count
Total number of input and output tokens when conversational models are called.
Number of input tokens
Count
Total number of input tokens when conversational models are called.
Number of output tokens
Count
Total number of output tokens when conversational models are called.
Request credit consumption
Count
Calculated based on the configured credit calculation coefficient and the number of input and output tokens consumed by this request.
Request Information
Number of successful requests
Count
Total number of successful CMR requests.
Number of failed requests
Count
Total number of failed CMR requests.
Number of failed requests to call the upstream model
Count
Total number of requests where CMR failed to call the upstream model.
Total number of requests
Count
Total number of CMR requests.
Number of requests that return the 400 status code
Count
The 400 status code returned by CMR indicates invalid request parameters. Common causes include invalid request parameters and context window overflow.
Number of requests that return the 401 status code
Count
The 401 status code returned by CMR indicates authentication failure. Common causes include an invalid or expired API Key provided by the user when accessing a BYOK model, and requests that do not carry an API Key.
Number of requests that return the 403 status code
Count
The 403 status code returned by CMR indicates insufficient permissions. Common causes include an API Key lacking permission to access the requested model when a BYOK model is accessed, and a suspended or restricted vendor-side account.
Number of requests that return the 404 status code
Count
The 404 status code returned by CMR indicates that the resource does not exist. Common causes include a model name that does not exist on the vendor side and an incorrect path in the custom API Base of a BYOK model.
Number of requests that return the 408 status code
Count
The 408 status code returned by CMR indicates request timeout. Common causes include upstream model response timeout and timeout when a connection is established with the upstream model.
Number of requests that return the 422 status code
Count
The 422 status code returned by CMR indicates that the request cannot be processed. A common cause is a semantic error in the request body.
Number of requests that return the 429 status code
Count
The 429 status code returned by CMR indicates that the request is rate-limited. Common causes include RPM, consumed Tokens exceeding the upstream model vendor quota, and concurrent requests exceeding the upstream model vendor limit.
Number of requests that return the 500 status code
Count
The 500 status code returned by CMR indicates an internal error on the upstream model server. Common causes include internal exceptions on the upstream model server and upstream model API connection failures.
Number of requests that return the 502 status code
Count
The 502 status code returned by CMR indicates an upstream model vendor gateway error. Common causes include an unreachable upstream model service and exceptions at the upstream model gateway layer.
Number of requests that return the 503 status code
Count
The 503 status code returned by CMR indicates that the upstream model service is unavailable. Common causes include a temporarily unavailable upstream model service, a specific model being temporarily unavailable due to high load, and connection interruption during streaming responses.
Usage Details
Number of read-cache tokens
Count
Some models support counting Tokens that hit the cache in the Input direction.
Number of write-cache tokens
Count
Some models support counting Tokens written to the cache in the Input direction.
Number of standard non-cache tokens
Count
Token count for Input-direction requests that do not hit any cache.
Number of input image converted tokens
Count
Some models support converting images input in the Input direction into Tokens for counting.
Number of built-in tool usage times of the upstream model
Count
Some models support counting the number of tool calls.
Number of reasoning/thinking tokens
Count
Some models support counting Tokens in the reasoning and thinking part.
Number of standard text output tokens
Count
Token count output in the Output direction of the model.
Latency
Upstream model call latency
ms
Call latency for CMR accessing the upstream model.
Time to first Token for streaming requests
ms
Time interval from input to the first output Token in CMR.
Latency of internal processing overhead
ms
Latency of CMR processing its own logic.
Request latency
ms
CMR request latency is the sum of upstream model call latency and CMR processing overhead latency.
Upstream model
Number of failed responses from the upstream model
Count
Number of failed responses from the upstream model
Total number of upstream model requests
Count
Total number of upstream model requests
Number of successful responses from the upstream model
Count
Number of successful responses from the upstream model
Number of successful fallback calls of the upstream model
Count
Number of successful fallback calls of the upstream model
Number of failed fallback calls of the upstream model
Count
Number of failed fallback calls of the upstream model

Description of Alarm Policies in the Model Dimension

Alarm Policy Type
Alarm Policy
Alarm Metric
Unit
Description
Model
Core Usage
Total number of tokens
Count
Total number of input and output tokens when conversational models are called.
Number of input tokens
Count
Total number of input tokens when conversational models are called.
Number of output tokens
Count
Total number of output tokens when conversational models are called.
Request credit consumption
Count
Calculated based on the configured credit calculation coefficient and the number of input and output tokens consumed by this request.
Request Information
Number of successful requests
Count
Total number of successful CMR requests.
Number of failed requests
Count
Total number of failed CMR requests.
Number of failed requests to call the upstream model
Count
Total number of requests where CMR failed to call the upstream model.
Total number of requests
Count
Total number of CMR requests.
Number of requests that return the 400 status code
Count
The 400 status code returned by CMR indicates invalid request parameters. Common causes include invalid request parameters and context window overflow.
Number of requests that return the 401 status code
Count
The 401 status code returned by CMR indicates authentication failure. Common causes include an invalid or expired API Key provided by the user when accessing a BYOK model, and requests that do not carry an API Key.
Number of requests that return the 403 status code
Count
The 403 status code returned by CMR indicates insufficient permissions. Common causes include an API Key lacking permission to access the requested model when a BYOK model is accessed, and a suspended or restricted vendor-side account.
Number of requests that return the 404 status code
Count
The 404 status code returned by CMR indicates that the resource does not exist. Common causes include a model name that does not exist on the vendor side and an incorrect path in the custom API Base of a BYOK model.
Number of requests that return the 408 status code
Count
The 408 status code returned by CMR indicates request timeout. Common causes include upstream model response timeout and timeout when a connection is established with the upstream model.
Number of requests that return the 422 status code
Count
The 422 status code returned by CMR indicates that the request cannot be processed. A common cause is a semantic error in the request body.
Number of requests that return the 429 status code
Count
The 429 status code returned by CMR indicates that the request is rate-limited. Common causes include RPM, consumed Tokens exceeding the upstream model vendor quota, and concurrent requests exceeding the upstream model vendor limit.
Number of requests that return the 500 status code
Count
The 500 status code returned by CMR indicates an internal error on the upstream model server. Common causes include internal exceptions on the upstream model server and upstream model API connection failures.
Number of requests that return the 502 status code
Count
The 502 status code returned by CMR indicates an upstream model vendor gateway error. Common causes include an unreachable upstream model service and exceptions at the upstream model gateway layer.
Number of requests that return the 503 status code
Count
The 503 status code returned by CMR indicates that the upstream model service is unavailable. Common causes include a temporarily unavailable upstream model service, a specific model being temporarily unavailable due to high load, and connection interruption during streaming responses.
Usage Details
Number of read-cache tokens
Count
Some models support counting Tokens that hit the cache in the Input direction.
Number of write-cache tokens
Count
Some models support counting Tokens written to the cache in the Input direction.
Number of standard non-cache tokens
Count
Token count for Input-direction requests that do not hit any cache.
Number of input image converted tokens
Count
Some models support converting images input in the Input direction into Tokens for counting.
Number of built-in tool usage times of the upstream model
Count
Some models support counting the number of tool calls.
Number of reasoning/thinking tokens
Count
Some models support counting Tokens in the reasoning and thinking part.
Number of standard text output tokens
Count
Token count output in the Output direction of the model.
Latency
Upstream model call latency
ms
Call latency for CMR accessing the upstream model.
Time to first Token for streaming requests
ms
Time interval from input to the first output Token in CMR.
Latency of internal processing overhead
ms
Latency of CMR processing its own logic.
Request latency
ms
CMR request latency is the sum of upstream model call latency and CMR processing overhead latency.
Upstream model
Number of failed responses from the upstream model
Count
Number of failed responses from the upstream model
Total number of upstream model requests
Count
Total number of upstream model requests
Number of successful responses from the upstream model
Count
Number of successful responses from the upstream model
Number of successful fallback calls of the upstream model
Count
Number of successful fallback calls of the upstream model
Number of failed fallback calls of the upstream model
Count
Number of failed fallback calls of the upstream model

Description of Alarm Policies in the User Group Dimension

Alarm Policy Type
Alarm Policy
Alarm Metric
Unit
Description
User Group
Core Usage
Total number of tokens
Count
Total number of input and output tokens when conversational models are called.
Number of input tokens
Count
Total number of input tokens when conversational models are called.
Number of output tokens
Count
Total number of output tokens when conversational models are called.
Request credit consumption
Count
Calculated based on the configured credit calculation coefficient and the number of input and output tokens consumed by this request.
Request Information
Number of successful requests
Count
Total number of successful CMR requests.
Number of failed requests
Count
Total number of failed CMR requests.
Number of failed requests to call the upstream model
Count
Total number of requests where CMR failed to call the upstream model.
Total number of requests
Count
Total number of CMR requests.
Number of requests that return the 400 status code
Count
The 400 status code returned by CMR indicates invalid request parameters. Common causes include invalid request parameters and context window overflow.
Number of requests that return the 401 status code
Count
The 401 status code returned by CMR indicates authentication failure. Common causes include an invalid or expired API Key provided by the user when accessing a BYOK model, and requests that do not carry an API Key.
Number of requests that return the 403 status code
Count
The 403 status code returned by CMR indicates insufficient permissions. Common causes include an API Key lacking permission to access the requested model when a BYOK model is accessed, and a suspended or restricted vendor-side account.
Number of requests that return the 404 status code
Count
The 404 status code returned by CMR indicates that the resource does not exist. Common causes include a model name that does not exist on the vendor side and an incorrect path in the custom API Base of a BYOK model.
Number of requests that return the 408 status code
Count
The 408 status code returned by CMR indicates request timeout. Common causes include upstream model response timeout and timeout when a connection is established with the upstream model.
Number of requests that return the 422 status code
Count
The 422 status code returned by CMR indicates that the request cannot be processed. A common cause is a semantic error in the request body.
Number of requests that return the 429 status code
Count
The 429 status code returned by CMR indicates that the request is rate-limited. Common causes include RPM, consumed Tokens exceeding the upstream model vendor quota, and concurrent requests exceeding the upstream model vendor limit.
Number of requests that return the 500 status code
Count
The 500 status code returned by CMR indicates an internal error on the upstream model server. Common causes include internal exceptions on the upstream model server and upstream model API connection failures.
Number of requests that return the 502 status code
Count
The 502 status code returned by CMR indicates an upstream model vendor gateway error. Common causes include an unreachable upstream model service and exceptions at the upstream model gateway layer.
Number of requests that return the 503 status code
Count
The 503 status code returned by CMR indicates that the upstream model service is unavailable. Common causes include a temporarily unavailable upstream model service, a specific model being temporarily unavailable due to high load, and connection interruption during streaming responses.
Usage Details
Number of read-cache tokens
Count
Some models support counting Tokens that hit the cache in the Input direction.
Number of write-cache tokens
Count
Some models support counting Tokens written to the cache in the Input direction.
Number of standard non-cache tokens
Count
Token count for Input-direction requests that do not hit any cache.
Number of input image converted tokens
Count
Some models support converting images input in the Input direction into Tokens for counting.
Number of built-in tool usage times of the upstream model
Count
Some models support counting the number of tool calls.
Number of reasoning/thinking tokens
Count
Some models support counting Tokens in the reasoning and thinking part.
Number of standard text output tokens
Count
Token count output in the Output direction of the model.
Latency
Upstream model call latency
ms
Call latency for CMR accessing the upstream model.
Time to first Token for streaming requests
ms
Time interval from input to the first output Token in CMR.
Latency of internal processing overhead
ms
Latency of CMR processing its own logic.
Request latency
ms
CMR request latency is the sum of upstream model call latency and CMR processing overhead latency.
Upstream model
Number of failed responses from the upstream model
Count
Number of failed responses from the upstream model
Total number of upstream model requests
Count
Total number of upstream model requests
Number of successful responses from the upstream model
Count
Number of successful responses from the upstream model
Number of successful fallback calls of the upstream model
Count
Number of successful fallback calls of the upstream model
Number of failed fallback calls of the upstream model
Count
Number of failed fallback calls of the upstream model

Description of Alarm Policies in the APIKey Dimension

Alarm Policy Type
Alarm Policy
Alarm Metric
Unit
Description
API KEY
Core Usage
Total number of tokens
Count
Total number of input and output tokens when conversational models are called.
Number of input tokens
Count
Total number of input tokens when conversational models are called.
Number of output tokens
Count
Total number of output tokens when conversational models are called.
Request credit consumption
Count
Calculated based on the configured credit calculation coefficient and the number of input and output tokens consumed by this request.
Request Information
Number of successful requests
Count
Total number of successful CMR requests.
Number of failed requests
Count
Total number of failed CMR requests.
Number of failed requests to call the upstream model
Count
Total number of requests where CMR failed to call the upstream model.
Total number of requests
Count
Total number of CMR requests.
Number of requests that return the 400 status code
Count
The 400 status code returned by CMR indicates invalid request parameters. Common causes include invalid request parameters and context window overflow.
Number of requests that return the 401 status code
Count
The 401 status code returned by CMR indicates authentication failure. Common causes include an invalid or expired API Key provided by the user when accessing a BYOK model, and requests that do not carry an API Key.
Number of requests that return the 403 status code
Count
The 403 status code returned by CMR indicates insufficient permissions. Common causes include an API Key lacking permission to access the requested model when a BYOK model is accessed, and a suspended or restricted vendor-side account.
Number of requests that return the 404 status code
Count
The 404 status code returned by CMR indicates that the resource does not exist. Common causes include a model name that does not exist on the vendor side and an incorrect path in the custom API Base of a BYOK model.
Number of requests that return the 408 status code
Count
The 408 status code returned by CMR indicates request timeout. Common causes include upstream model response timeout and timeout when a connection is established with the upstream model.
Number of requests that return the 422 status code
Count
The 422 status code returned by CMR indicates that the request cannot be processed. A common cause is a semantic error in the request body.
Number of requests that return the 429 status code
Count
The 429 status code returned by CMR indicates that the request is rate-limited. Common causes include RPM, consumed Tokens exceeding the upstream model vendor quota, and concurrent requests exceeding the upstream model vendor limit.
Number of requests that return the 500 status code
Count
The 500 status code returned by CMR indicates an internal error on the upstream model server. Common causes include internal exceptions on the upstream model server and upstream model API connection failures.
Number of requests that return the 502 status code
Count
The 502 status code returned by CMR indicates an upstream model vendor gateway error. Common causes include an unreachable upstream model service and exceptions at the upstream model gateway layer.
Number of requests that return the 503 status code
Count
The 503 status code returned by CMR indicates that the upstream model service is unavailable. Common causes include a temporarily unavailable upstream model service, a specific model being temporarily unavailable due to high load, and connection interruption during streaming responses.
Usage Details
Number of read-cache tokens
Count
Some models support counting Tokens that hit the cache in the Input direction.
Number of write-cache tokens
Count
Some models support counting Tokens written to the cache in the Input direction.
Number of standard non-cache tokens
Count
Token count for Input-direction requests that do not hit any cache.
Number of input image converted tokens
Count
Some models support converting images input in the Input direction into Tokens for counting.
Number of built-in tool usage times of the upstream model
Count
Some models support counting the number of tool calls.
Number of reasoning/thinking tokens
Count
Some models support counting Tokens in the reasoning and thinking part.
Number of standard text output tokens
Count
Token count output in the Output direction of the model.
Latency
Upstream model call latency
ms
Call latency for CMR accessing the upstream model.
Time to first Token for streaming requests
ms
Time interval from input to the first output Token in CMR.
Latency of internal processing overhead
ms
Latency of CMR processing its own logic.
Request latency
ms
CMR request latency is the sum of upstream model call latency and CMR processing overhead latency.
Upstream model
Number of failed responses from the upstream model
Count
Number of failed responses from the upstream model
Total number of upstream model requests
Count
Total number of upstream model requests
Number of successful responses from the upstream model
Count
Number of successful responses from the upstream model
Number of successful fallback calls of the upstream model
Count
Number of successful fallback calls of the upstream model
Number of failed fallback calls of the upstream model
Count
Number of failed fallback calls of the upstream model


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック