Skip to content

Alibaba Cloud SLS

Alibaba Cloud SLS Metrics display, including service status, log traffic, operation counts, total QPS, etc.

Configuration

Install Func

It is recommended to enable the Guance integration - extension - hosted Func.

If you deploy Func by yourself, refer to Self-deployed Func

Enable Script

Note: Please prepare an Alibaba Cloud AK that meets the requirements in advance (for simplicity, you can directly grant global read-only permission ReadOnlyAccess).

Hosted Enable Script

  1. Log in to the Guance console.
  2. Click on the 【Integration】 menu and select 【Cloud Account Management】.
  3. Click 【Add Cloud Account】, choose 【Alibaba Cloud】, and fill in the required information on the interface; if you have already configured cloud account information, skip this step.
  4. Click 【Test】, and after testing successfully, click 【Save】. If the test fails, check whether the related configuration information is correct and retest.
  5. In the 【Cloud Account Management】 list, you can see the added cloud accounts. Click on the corresponding cloud account to enter the details page.
  6. Click the 【Integration】 button on the cloud account details page. Under the Not Installed list, find Alibaba Cloud SLS, click the 【Install】 button, and install it via the installation interface.

Manual Enable Script

  1. Log in to the Func console, click 【Script Market】, enter the official script market, and search for guance_aliyun_monitor.

  2. After clicking 【Install】, input the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.

  3. Click 【Deploy Startup Script】, and the system will automatically create a Startup script set and configure the corresponding startup scripts automatically.

  4. After enabling, you can see the corresponding automatic trigger configurations under 「Management / Automatic Trigger Configurations」. Click 【Execute】 to run it immediately without waiting for the scheduled time. Wait a moment, then you can view the execution task records and corresponding logs.

We collect some default configurations, see the metrics section for details.

Configure custom cloud object metrics

We collect some default configurations, see the metrics section for details.

Metrics

After configuring Alibaba Cloud - Cloud Monitoring, the default metric sets are as follows. You can collect more metrics through configuration. Alibaba Cloud Cloud Monitoring Metric Details

Metric Id Metric Name Dimensions Statistics Unit
AlarmIPCount Error IP Count userId,project,logstore,alarm_type,source_ip Count Frequency
AlarmPV Client Error Count userId,project,logstore Sum Frequency
AlarmUV Client Error Machines userId,project,logstore Count Frequency
ConsumerGroupFallBehind Consumer Lag Duration userId,project,logstore,consumerGroup Maximum Second
FailedLines Failed Lines at Client userId,project,logstore Sum Lines
InflowLine Written Lines userId,project,logstore Sum Lines/Minute
LogCodeQPS Service Status userId,project,logstore,status Count Count
LogInflow Inbound Traffic userId,project,logstore Sum bytes
LogMethodQPS Operation Counts userId,project,logstore,method Count Count
LogOutflow Outbound Traffic userId,project,logstore Sum bytes
NetFlow Network Inbound Traffic userId,project,logstore Sum bytes
SuccessdByte Successful Bytes at Client userId,project,logstore Sum bytes
SuccessdLines Successful Lines at Client userId,project,logstore Sum Lines
SumQPS Total QPS userId,project,logstore Count Count

Feedback

Is this page helpful? ×