This document describes how to create and manage an alarm policy in the console.
Overview
You can create alarm policies to trigger alarms and send alarm notifications when the TDSQL-C for MySQL status changes. The created alarm policies can determine whether an alarm needs to be triggered according to the difference between the monitoring metric value and the given threshold at intervals.
When the alarm is triggered by a status change, you can promptly take the necessary preventative or corrective action. Alarm policies can therefore, if appropriately created, help you improve the robustness and reliability of your database. For more information on alarms, see Creating Alarm Policy. To send an alarm for a specific status of TDSQL-C for MySQL, you need to create an alarm policy at first. An alarm policy is composed of three compulsory components, that is, the name, type and alarm triggering conditions. Each alarm policy is a set of alarm triggering conditions with the logical relationship "OR", that is, as long as one of the conditions is met, an alarm will be triggered. The alarm will be sent to all users associated with the alarm policy. Upon receiving the alarm, the user can view the alarm and take appropriate actions in time. After creating an alarm policy, you can change its name, remarks, or triggering conditions and edit its alarm objects.
Directions
Setting an alarm policy
2. Select a region at the top and proceed according to the actually used view mode:
Click Target Cluster in the cluster list on the left to enter the cluster management page.
Find the target cluster in the cluster list and click the Cluster ID or Manage in the Operation column to enter the cluster management page.
3. Select Monitoring and Alarms on the cluster management page and click Configure Alarms on the right.
4. On the page displayed, select Manage Monitoring Policy > Create Policy.
5. On the policy creation page, configure the following parameters and click Complete.
|
Policy Name | Enter the policy name, which can contain up to 60 characters. |
Remarks | Enter remarks for the policy, which can contain up to 100 characters. |
Monitoring Type | Select Tencent Cloud services. |
Policy Type | Select TencentDB >TDSQL-C > MySQL. |
Alarm Object | Find the object instance to be associated with by selecting the region where the object is located or searching for the instance ID of the object. |
Trigger Condition | Select a predefined template or manually configure the alarm trigger condition, which is a semantic condition composed of metric, comparison, threshold, statistical period, and duration. For example, if the metric is disk utilization, the comparison is >, the threshold is 80%, the statistical period is 5 minutes, and the duration is two statistical periods, then the data on disk utilization of a database will be collected once every five minutes, and an alarm will be triggered if the disk utilization exceeds 80% for two consecutive times. |
Configure Alarm Notification | Select a preset or custom notification template. Each alarm policy can be bound to three notification templates at most. For more information, see Creating Notification Template. |
Managing an alarm policy
1. In the alarm policy list, click the name of the target alarm policy to enter the alarm policy management page. 2. Select Policy Details on the alarm policy management page.
3. Select the configuration item to be modified as needed, such as policy name, remarks, trigger condition, and alarm object.
Was this page helpful?