You can configure alarm policies for cloud functions through the Tencent Cloud Observability Platform, allowing you to monitor the operational status of the functions. Currently, the monitoring metrics for which alarms can be configured for cloud functions include runtime, number of calls, number of errors, etc. For a complete list of supported metrics, please refer to Monitoring Metrics Description. Additionally, the alarm system allows you to select user groups to receive alarms and choose from various notification channels such as email, SMS, and WeChat.
Procedure
1. Log in to the Serverless console and select Function Service from the left navigation bar.
2. On the Function Service list page, click on the function name to enter the function details page.
3. Select Monitoring information from the left navigation and click Set alarm on the Monitoring Information Details page, as shown in the figure below:
4. On the Create Alarm Policy page, configure the alarm policy as follows:
Policy Type: Supports selection of "Cloud Function/Version" or "Cloud Function/Alias".
Alarm Object: Set according to actual needs. If "Instance ID" is selected, its default region is set to Guangzhou. In different regions, you can see the corresponding functions, please select the functions that need to apply the alarm policy.
For more detailed alarm policy configuration, please refer to Create Alarm Policy.
5. Click Complete. In Alarm Management > Policy Management, you can view the configured policy and choose to start or stop it at any time based on actual needs.
Tutorial Video
The following video will guide you on how to configure alarms and view logs: