Skip to content

Tencent Cloud EIP

Collect Tencent Cloud EIP Metrics data

Configuration

Install Func

It is recommended to enable Guance Integration - Extension - DataFlux Func (Automata): All prerequisites will be automatically installed. Please continue with the script installation.

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

Install Script

Note: Please prepare a qualified Tencent Cloud AK in advance (for simplicity, you can directly grant global read-only permission ReadOnlyAccess).

  1. Log in to the Func console, click on [Script Market], enter the official script market, and search for: guance_tencentcloud_eip
  2. After clicking [Install], input the corresponding parameters: Tencent Cloud AK ID, AK Secret, and account name.
  3. Click [Deploy Start Script], and the system will automatically create a Startup script set and configure the corresponding start script.
  4. After enabling, you can see the corresponding automatic trigger configuration under "Manage / Automatic Trigger Configuration". Click [Execute] to run it immediately without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.

Verification

  1. In "Manage / Automatic Trigger Configuration", confirm whether the corresponding task has an automatic trigger configuration, and check the corresponding task records and logs for any anomalies.
  2. In Guance, under "Infrastructure - Resource Catalog", check if asset information exists.
  3. In Guance, under "Metrics", check if there are corresponding monitoring data.

Metrics

After configuring Tencent Cloud - Cloud Monitor, the default Metrics set is as follows. You can collect more Metrics through configuration: Tencent Cloud Cloud Monitor Metrics Details

Tencent Cloud EIP Metrics are under the tencentcloud_QCE/LB Metrics set. Below are relevant Metrics descriptions:

Metric Name Metric Description Metric Explanation Unit Statistical Granularity
VipIntraffic Inbound Bandwidth Elastic Public IP inbound bandwidth Mbps 5s, 10s, 60s, 300s, 3600s, 86400s
VipOuttraffic Outbound Bandwidth Elastic Public IP outbound bandwidth Mbps 5s, 10s, 60s, 300s, 3600s, 86400s
VipInpkg Inbound Packet Rate Elastic Public IP inbound packet rate packets/sec 5s, 10s, 60s, 300s, 3600s, 86400s
VipOutpkg Outbound Packet Rate Elastic Public IP outbound packet rate packets/sec 5s, 10s, 60s, 300s, 3600s, 86400s
AccOuttraffic Outbound Traffic Elastic Public IP outbound traffic MB 5s, 10s, 60s, 300s, 3600s, 86400s
IntrafficVipRatio Public Network Inbound Bandwidth Utilization Public network inbound bandwidth utilization % 5s, 10s, 60s, 300s, 3600s, 86400s
OuttrafficVipRatio Public Network Outbound Bandwidth Utilization Public network outbound bandwidth utilization % 5s, 10s, 60s, 300s, 3600s, 86400s
VipInDropPkts External Network Inbound Dropped Packets External network inbound dropped packets pps 5s, 10s, 60s, 300s, 3600s, 86400s
VipOutDropPkts External Network Outbound Dropped Packets External network outbound dropped packets pps 5s, 10s, 60s, 300s, 3600s, 86400s

Objects

The collected Tencent Cloud EIP object data structure can be seen under "Infrastructure - Resource Catalog".

{
  "measurement": "tencentcloud_eip",
  "tags": {
    "name"                    : "eip-xxxxxx",
    "RegionId"                : "ap-shanghai",
    "AddressId"               : "ap-shanghai-1",
    "AddressName"             : "xxxx",
    "AddressStatus"           : "BIND",
    "AddressIp"               : "119.45.172.xxx",
    "AddressType"             : "EIP",
    "InternetServiceProvider" : "BGP",
    "InternetChargeType"      : "TRAFFIC_POSTPAID_BY_HOUR"
  },
  "fields": {
    "IsEipDirectConnection" : false,
    "IsArrears"             : false,
    "IsBlocked"             : false,
    "InstanceId"            : "ins-mmxxxx",
    "NetworkInterfaceId"    : "eni-8xxxxx",
    "PrivateAddressIp"      : "10.206.0.16",
    "CreatedTime"           : "2024-06-11T08:10:57Z",
    "CascadeRelease"        : false,
    "LocalBgp"              : false,
    "Bandwidth"             : 1,
    "EipAlgType"            : "{EIP ALG enabled protocol type}",
    "message"               : "{Instance JSON data}"
  }
}

Note: Fields in tags and fields may change with subsequent updates. Tip 1: The value of tags.name is the instance ID, used as a unique identifier. Tip 2: fields.message is a JSON serialized string.

Feedback

Is this page helpful? ×