SCF Cloud Insight provides one-stop collection and retrieval analysis of Serverless Cloud Function (SCF) call logs, helping you quickly build observability of SCF call analysis.
Features
Unify the retrieval and analysis entry for SCF call logs.
Enable SCF call log collection in batches.
Prerequisites
Directions
Enabling SCF Call Log Collection
Step 1: Entering SCF Cloud Insight
2. In the left navigation bar, select Cloud Insight to enter the Cloud Insight page.
3. In Cloud Insight, select and click Serverless Cloud Function (SCF) Cloud Insight.
Step 2: Enabling Call Log Collection for SCF
1. In Serverless Cloud Function (SCF) Cloud Insight, choose Collection Management > Instance Collection.
2. Select the region where the target SCF function is located. In the SCF list, find and select one or more target SCF functions.
3. Click Enable log collection.
4. In the Enable Log Collection pop-up window, click Confirm to start collecting the call logs of the target SCF function.
Note:
The target log topic and log set are dedicated to SCF by default. The log topic name is SCF_logtopic_${automatically generated unique identifier}, and the log set name is SCF_logset_${automatically generated unique identifier}.
Retrieving and Analyzing SCF Call Logs
1. After enabling call log collection for SCF, select Log Search in the top tab bar.
2. In the SCF drop-down list, select the target SCF with access log collection enabled.
3. After selecting the SCF, you can retrieve and analyze the function call logs related to the selected SCF instance.
Disabling SCF Call Log Collection
1. In Serverless Cloud Function (SCF) Cloud Insight, choose Collection Management > Instance Collection.
2. Select the SCF for which you want to disable log collection in the SCF list, and click Disable Log Collection.
Note:
Disabling log collection only represents that no new logs will be collected. The existing collected logs will continue to be stored in the log topic until expiration, and storage fees will continue to be incurred during this period. If you do not want to continue storing, choose Collection Management > Storage Topic and find the target topic and delete it. 3. In the pop-up for disabling collection, you need to select Disable, and then click Confirm to disable log collection for the selected SCF instance.