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 the TrueWatch integration - extension - 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)

Activate Script in DataFlux Func (Automata)

  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 you have already configured the cloud account information before, ignore this step
  4. Click 【Test】, after successful testing, click 【Save】. If the test fails, please check if the relevant configuration information is correct and retest
  5. Click 【Cloud Account Management】, and 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.

Manually Activate Script

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

  2. After clicking 【Install】, 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 script.

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

We have collected some configurations by default, see the Metrics section for details

Configure Custom Cloud Object Metrics

We have collected some configurations by default, see the Metrics section for details

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 Success Traffic userId,project,logstore Sum bytes
SuccessdLines Client Parsing Success Line Count userId,project,logstore Sum Lines
SumQPS Overall QPS userId,project,logstore Count Count