Skip to content

Alibaba Cloud SLS

Alibaba Cloud SLS Metrics Display, including service status, log traffic, operation count, overall QPS, etc.

Configuration

Install Func

It is recommended to activate TrueWatch Integration - Extensions - DataFlux Func (Automata)

If deploying Func by yourself, refer to Self-deploying Func

Activate Script

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

Automata Activation Script

  1. Log in to the TrueWatch console
  2. Click the 【Integration】 menu, select 【Cloud Account Management】
  3. Click 【Add Cloud Account】, select 【Alibaba Cloud】, and fill in the required information on the interface. If the cloud account information has been configured before, ignore this step
  4. Click 【Test】, after the test is successful, click 【Save】. If the test fails, please check whether the relevant configuration information is correct and test again
  5. Click 【Cloud Account Management】, you can see the added cloud account in the list, click the corresponding cloud account to enter the details page
  6. Click the 【Integration】 button on the cloud account details page, find Alibaba Cloud SLS under the Not Installed list, click the 【Install】 button, and the installation interface will pop up for installation.

Manual Activation Script

  1. Log in to the Func console, click 【Script Market】, enter the TrueWatch script market, search: integration_alibabacloud_monitor

  2. Click 【Install】, then enter the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.

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

  4. After activation, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to execute it immediately without waiting for the scheduled time. After a while, you can view the execution task records and corresponding logs.

Metrics

After configuring Alibaba Cloud Cloud Monitor, the default Measurement is as follows, more Metrics can be collected through configuration Alibaba Cloud Cloud Monitor Metrics 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 Machine Count userId,project,logstore Count Frequency
ConsumerGroupFallBehind Consumption Lag Time userId,project,logstore,consumerGroup Maximum Second
FailedLines Client Parsing Failed Line Count userId,project,logstore Sum Lines
InflowLine Inflow Line Count userId,project,logstore Sum Lines/Minute
LogCodeQPS Service Status userId,project,logstore,status Count Count
LogInflow Inflow Traffic userId,project,logstore Sum bytes
LogMethodQPS Operation Count userId,project,logstore,method Count Count
LogOutflow Outflow Traffic userId,project,logstore Sum bytes
NetFlow Network Inflow Traffic userId,project,logstore Sum bytes
SuccessdByte Client Parsing Successful Traffic userId,project,logstore Sum bytes
SuccessdLines Client Parsing Successful Line Count userId,project,logstore Sum Lines
SumQPS Overall QPS userId,project,logstore Count Count