Key Management Service (KMS) integrates with Cloud Monitor (CMS) to monitor system events and provide alerts. This integration helps you stay informed about events and handle them promptly. This topic describes how to query system events and set alerts.
KMS system event types
System events do not require manual configuration. When the trigger conditions for a system event are met, the event is automatically displayed in the Key Management Service console and the CloudMonitor console. To receive alert notifications for events, you must set them in the CloudMonitor console. For more information, see Set alert notifications for system events in this topic.
System event | Event level | Trigger condition |
QPS is approaching the upper limit | Critical | This event is triggered when the real-time queries per second (QPS) of a KMS instance reaches 90% of its quota. |
Key scheduled for deletion | Warning | This event is triggered when a key is scheduled for deletion. |
Key deleted | Warning | This event is triggered when a key is deleted. |
Credential scheduled for deletion | Warning | This event is triggered when a credential is scheduled for deletion. |
Credential deleted | Warning | This event is triggered when a credential is deleted. |
Managed credential rotation failed | Critical | This event is triggered when a credential rotation fails. |
Managed credential rotation succeeded | Info | This event is triggered when a credential rotation succeeds. |
Key sync failed | Critical | This event is triggered when a key in a KMS instance fails to sync across regions. For more information, see Cross-region synchronization. |
Key sync succeeded | Info | This event is triggered when a key in a KMS instance successfully syncs across regions. For more information, see Cross-region synchronization. |
ClientKey expiration reminder | Critical | This event is triggered 180, 90, 30, and 7 days before a ClientKey expires. For more information about ClientKeys, see Overview of application access points. |
The following sections describe the JSON format and content fields for each event notification.
QPS is approaching the upper limit
Key scheduled for deletion
Key deleted
Credential scheduled for deletion
Credential deleted
Managed credential rotation failed
Managed credential rotation succeeded
Key sync failed
Key sync succeeded
ClientKey expiration reminder
Supported CloudMonitor metrics
Metric | Description | Alerting supported | Dimensions | Statistics |
Requests per minute for an instance | Number of requests per minute. | Yes | userId, regionId, instanceId | Value |
Symmetric encryption/decryption requests per minute | Number of symmetric operation requests per minute. | Yes | userId, regionId, instanceId | Value |
Asymmetric encryption requests per minute | Number of asymmetric encryption requests per minute. | Yes | userId, regionId, instanceId | Value |
Asymmetric decryption requests per minute | Number of asymmetric decryption requests per minute. | Yes | userId, regionId, instanceId | Value |
Asymmetric signing requests per minute | Number of asymmetric signing requests per minute. | Yes | userId, regionId, instanceId | Value |
Asymmetric signature verification requests per minute | Number of asymmetric signature verification requests per minute. | Yes | userId, regionId, instanceId | Value |
Credential operation requests per minute | Number of credential requests per minute. | Yes | userId, regionId, instanceId | Value |
Other requests per minute | Number of other operation requests per minute. | Yes | userId, regionId, instanceId | Value |
5xx error requests | Number of requests with 5xx error codes per minute. | Yes | userId, regionId, instanceId | Value |
4xx error requests | Number of requests with 4xx error codes per minute. | Yes | userId, regionId, instanceId | Value |
Request latency | Average latency of all requests per minute. | Yes | userId, regionId, instanceId | Value |
KMS instance CPU utilization | CPU utilization of the instance. | Yes | user_id,instance_id | Value |
KMS instance symmetric QPS utilization | Symmetric QPS utilization of the instance. | Yes | user_id,instance_id | Value |
KMS instance asymmetric QPS utilization | Asymmetric QPS utilization of the instance. | Yes | user_id,instance_id | Value |
View system events
You can view system events from the last 90 days.
Method 1: View in the Key Management Service console
Log on to the KMS console. In the top navigation bar, select a region. In the navigation pane on the left, choose .
On the CloudMonitor Alerts tab, select the system event and the time range that you want to query.

In the Actions column, click Details to view the event details.
Method 2: View in the CloudMonitor console
Log on to the Cloud Monitor console.
In the navigation pane on the left, choose .
On the Event Monitoring tab, set Product to Key Management Service. Then, select the event level, event name, and time period, and then click Search.
In the event list, find the target event and click Details in the Actions column.
Set alert notifications for system events
You can set alert rules for system events to receive prompt notifications when exceptions occur. This helps you quickly analyze and locate issues. You can set these rules only in the CloudMonitor console.
Log on to the Cloud Monitor console.
In the left-side navigation pane, choose .
On the Event Monitoring tab, click Save As Alert Rule.
NoteTo perform custom processing on alert notifications, such as merging and noise reduction, you can configure the notifications on the Event Subscription page. For more information, see Manage event subscriptions (recommended).
In the Create/Modify Event-triggered Alert Rule panel, configure the alert settings.
NoteFor more information about the configuration items, see Create an alert rule for a system event.
Reference
For more information about how to configure KMS CloudMonitor alerts and view CloudMonitor statistics, see Overview.