Skip to content

Alibaba Cloud EIP

Alibaba Cloud EIP metrics display, including network bandwidth, network data packets, rate of packet loss due to speed limits, bandwidth utilization, etc.

Configuration

Install Func

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

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

Enable Script

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

Hosted Version Enable Script

  1. Log in to Guance console
  2. Click on the 【Manage】 menu, select 【Cloud Account Management】
  3. Click 【Add Cloud Account】, select 【Alibaba Cloud】, fill in the required information on the interface. If you have already configured the cloud account information, skip this step.
  4. Click 【Test】, 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 and enter the details page.
  6. Click the 【Integration】 button on the cloud account detail page. Under the Not Installed list, find Alibaba Cloud EIP, click the 【Install】 button, and install it from the pop-up installation interface.

Manual Enable Script

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

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

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

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

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

Customize Cloud Object Metrics Configuration

Verification

  1. In 「Management / Automatic Trigger Configuration」 confirm whether the corresponding tasks exist with the corresponding automatic trigger configuration, and you can also check the task records and logs for any abnormalities.
  2. In Guance, under 「Infrastructure / Custom」, check if asset information exists.
  3. In Guance, under 「Metrics」 check if there are corresponding monitoring data.

Metrics

After configuring Alibaba Cloud - Cloud Monitor, the default metric set is as follows. You can collect more metrics through configuration. Alibaba Cloud Cloud Monitor Metric Details

Metric Description Statistics Unit
net_rx_rate Network inbound bandwidth Value bits/s
net_tx_rate Network outbound bandwidth Value bits/s
netrxPkgs_rate Inbound packet rate Average,Minimum,Maximum,Sum Packets/Second
nettxPkgs_rate Outbound packet rate Average,Minimum,Maximum,Sum Packets/Second
net_in.rate_percentage Network inbound bandwidth utilization Average
net_out.rate_percentage Network outbound bandwidth utilization Average
net_rx Inbound traffic Average,Minimum,Maximum,Sum bytes
net_tx Outbound traffic Average,Minimum,Maximum,Sum bytes
net_rxPkgs Inbound packets Average,Minimum,Maximum,Sum Count
net_txPkgs Outbound packets Average,Minimum,Maximum,Sum Count
in_ratelimit_drop_speed Inbound rate-limit packet drop rate Average,Minimum,Maximum,Sum Packets/Second
out_ratelimit_drop_speed Outbound rate-limit packet drop rate Average,Minimum,Maximum,Sum Packets/Second

Objects

The collected Alibaba Cloud EIP object data structure can be viewed from 「Infrastructure - Custom」

{
  "measurement": "aliyun_eip",
  "tags": {
    "name"              : "eip-xxxxx",
    "AllocationId"      : "eip-bp1lfsikwo4roa0mcqg9u",
    "EIPName"           : "",
    "Status"            : "InUse",
    "RegionId"          : "cn-hangzhou",
    "Bandwidth"         : "1",
    "IpAddress"         : "47.96.22.249",
    "InternetChargeType": "PayByTraffic",
    "BusinessStatus"    : "Normal",
    "ChargeType"        : "PostPaid"
  },
  "fields": {
    "AllocationTime": "2022-01-20T03:06:51Z",
    "ExpiredTime"   : "",
    "message"       : "{JSON instance data}"
  }
}

Feedback

Is this page helpful? ×