Skip to content

Huawei Cloud EIP

Collect Huawei Cloud EIP Metrics data.

Configuration

Install Func

It is recommended to activate the TrueWatch Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed, please proceed with the script installation.

If you want to deploy Func manually, refer to Manual Func Deployment

Install Script

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

  1. Log in to the Func console, click 【Script Market】, enter the TrueWatch Script Market, and search for integration_huaweicloud_eip

  2. Click 【Install】, then input the corresponding parameters: Huawei Cloud AK, SK, and account name

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

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

Verification

  1. Confirm whether the corresponding task exists in the automatic trigger configuration in 「Manage / Automatic Trigger Configuration」, and check the task records and logs for any exceptions
  2. In TrueWatch, check if asset information exists in 「Infrastructure - Resource Catalog」
  3. In TrueWatch, check if there is corresponding monitoring data in 「Metrics」

Metrics

Collect Huawei Cloud EIP Metrics, you can collect more metrics by configuration Huawei Cloud EIP Metrics Details

Metric ID Metric Name Metric Description Value Range Measurement Object Monitoring Period (Original Metric)
upstream_bandwidth Outbound Bandwidth This metric is used to measure the network speed of the test object leaving the cloud platform (original metric is upstream bandwidth). Unit: bits/second ≥ 0 bit/s Bandwidth or Elastic IP 1 minute
downstream_bandwidth Inbound Bandwidth This metric is used to measure the network speed of the test object entering the cloud platform (original metric is downstream bandwidth). Unit: bits/second ≥ 0 bit/s Bandwidth or Elastic IP 1 minute
upstream_bandwidth_usage Outbound Bandwidth Usage This metric is used to measure the bandwidth usage of the test object leaving the cloud platform, in percentage. Outbound bandwidth usage = Outbound bandwidth metric / Purchased bandwidth size 0-100% Bandwidth or Elastic IP 1 minute
downstream_bandwidth_usage Inbound Bandwidth Usage This metric is used to measure the bandwidth usage of the test object entering the cloud platform, in percentage. Inbound bandwidth usage = Inbound bandwidth metric / Purchased bandwidth size 0-100% Bandwidth or Elastic IP 1 minute
up_stream Outbound Traffic This metric is used to measure the cumulative network traffic of the test object leaving the cloud platform within one minute (original metric is upstream traffic). Unit: bytes ≥ 0 bytes Bandwidth or Elastic IP 1 minute
down_stream Inbound Traffic This metric is used to measure the cumulative network traffic of the test object entering the cloud platform within one minute (original metric is downstream traffic). Unit: bytes ≥ 0 bytes Bandwidth or Elastic IP 1 minute

Object

After data is synchronized normally, you can view the data in the 「Infrastructure - Resource Catalog」 in TrueWatch.

{
  "measurement": "huaweicloud_eip",
  "tags": {
    "RegionId"                : "cn-south-1",
    "project_id"              : "756ada1aa17e4049b2a16ea41912e52d",
    "enterprise_project_id"   : "0824ss-xxxx-xxxx-xxxx-12334fedffg",
    "alias"                   : "xxxxxx",
    "eip_id"                  : "01fbb835-6b7f-41e9-842c-xxxxx0bc0s49e9",
    "eip_name"                : "xxxx",
    "public_ip_address"       : "123.xx.xx.210",
    "public_ipv6_address"     : "3773b058-5b4f-xxxx-9035-9bbd9964714a",
    "status"                  : "DOWN",
    "associate_instance_type" : "EVPN",
    "associate_instance_id"   : "053xxx-xxx-41xx-b24d-909ed9fcbfe1",
  },
  "fields": {
    "type"            : "EIP",
    "description"     : "VPN CREATE EIP",
    "created_at"      : "2024-11-09T15:28:46",
    "updated_at"      : "2024-11-11T08:15:58Z",
    "bandwidth"       : "{JSON data}",
    "tags"            : "[]"
  }
}

Note: The fields in tags, fields may change with subsequent updates

Tip 1: tags.eip_id value is the EIP ID, used as a unique identifier

Tip 2: status is the corresponding status of the VPC