Skip to content

Huawei Cloud DCAAS Direct Connect

Collect Huawei Cloud DCAAS Metrics

Configuration

Install Func

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

If deploying Func manually, refer to Manual Func Deployment

Install Scripts

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

To synchronize Huawei Cloud DCAAS monitoring data, we install the corresponding collection scripts:

  • integration_huaweicloud_dcaas_virtual_interfaces: Collects DC Direct Connect Virtual Interface monitoring metrics
  • integration_huaweicloud_dcaas_direct_connects: Collects DC Direct Connect Physical Connection monitoring metrics

After clicking 【Install】, input the corresponding parameters: Huawei Cloud AK, Huawei Cloud account name.

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

After the script installation, find the scripts in Func under 「Development」: 「TrueWatch Integration (Huawei Cloud-DC-Virtual Interface)」/ 「TrueWatch Integration (Huawei Cloud-DC-Physical Connection)」, expand and modify these scripts, locate collector_configs and monitor_configs to edit the content under region_projects, change the region and Project ID to the actual region and Project ID, then click save and publish.

Additionally, in 「Management / Automatic Trigger Configuration」, you can see the corresponding automatic trigger configurations. 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. In 「Management / Automatic Trigger Configuration」, confirm if the corresponding task has the automatic trigger configuration, and check the task records and logs for any exceptions
  2. In TrueWatch, under 「Infrastructure - Resource Catalog」, check if asset information exists
  3. In TrueWatch, under 「Metrics」, check if there is corresponding monitoring data

Metrics

Collect Huawei Cloud DCAAS Metrics, you can collect more metrics through configuration Huawei Cloud DCAAS Metrics Details

Metric ID Metric Name Metric Meaning Value Range Measurement Object Monitoring Period (Original Metric)
network_incoming_bits_rate Network Inbound Bandwidth The bit rate of inbound data on the Direct Connect side. Unit: bit/s ≥ 0 bit/s Physical Connection and Historical Physical Connection 1 minute
network_outgoing_bits_rate Network Outbound Bandwidth The bit rate of outbound data on the Direct Connect side. Unit: bit/s ≥ 0 bit/s Physical Connection and Historical Physical Connection 1 minute
network_incoming_bytes Network Inbound Traffic The byte count of inbound data on the Direct Connect side. Unit: byte ≥ 0 bytes Physical Connection and Historical Physical Connection 1 minute
network_outgoing_bytes Network Outbound Traffic The byte count of outbound data on the Direct Connect side. Unit: byte ≥ 0 bytes Physical Connection and Historical Physical Connection 1 minute
network_incoming_packets_rate Network Inbound Packet Rate The packet rate of inbound data on the Direct Connect side. Unit: Packet/s ≥ 0 packets/s Physical Connection and Historical Physical Connection 1 minute
network_outgoing_packets_rate Network Outbound Packet Rate The packet rate of outbound data on the Direct Connect side. Unit: Packet/s ≥ 0 packets/s Physical Connection and Historical Physical Connection 1 minute
network_incoming_packets Network Inbound Packet Count The packet count of inbound data on the Direct Connect side. Unit: Packet ≥ 0 packets Physical Connection and Historical Physical Connection 1 minute
network_outgoing_packets Network Outbound Packet Count The packet count of outbound data on the Direct Connect side. Unit: Packet ≥ 0 packets Physical Connection and Historical Physical Connection 1 minute
network_status Port Status The port status of the Direct Connect physical connection. 0-DOWN 1-UP Physical Connection and Historical Physical Connection 1 minute
bgp_receive_route_num_v4 Received IPv4 Route Entries The number of IPv4 route entries learned by the virtual interface through the BGP protocol. ≥0 Virtual Interface 1 minute
bgp_receive_route_num_v6 Received IPv6 Route Entries The number of IPv6 route entries learned by the virtual interface through the BGP protocol. ≥0 Virtual Interface 1 minute
bgp_peer_status_v4 IPv4 BGP PEER Status IPv4 BGP PEER Status 0-DOWN 1-ACTIVE Virtual Interface 1 minute
bgp_peer_status_v6 IPv6 BGP PEER Status IPv6 BGP PEER Status 0-DOWN 1-ACTIVE Virtual Interface 1 minute
in_errors Network Inbound Error Packet Count The count of inbound error packets on the Direct Connect side 0-2^23 Virtual Interface 1 minute

Objects

After data synchronization is normal, you can view the data in TrueWatch under 「Infrastructure - Resource Catalog」.

  • DC Direct Connect Virtual Interface Object Data:
{
  "measurement": "huaweicloud_dcass_virtual_interface",
  "tags": {
    "RegionId"                : "cn-south-1",
    "project_id"              : "756ada1aa17exxxxb2a16ea41912e52d",
    "enterprise_project_id"   : "320a1900-b6d2-xxxx-a348-0979986b730b",
    "tenant_id"               : "07d662153ada40c5bd984601976xxxx",
    "virtual_interface_id"    : "ccaad430-389c-4fe6-xxxx-2543e1b0d1b5",
    "virtual_interface_name"  : "vif-xxxx-xx-2g02",
    "direct_connect_id"       : "b032de49-2932-4ae3-xxxx-c0234f60afce",
    "status"                  : "ACTIVE"
  },
  "fields": {
    "type"              : "private",
    "service_type"      : "GDGW",
    "vgw_id"            : "xxxxxxxxxx",
    "bandwidth"         : "500",
    "description"       : "{JSON Data}",
    "device_id"         : "120.87.xxx.9",
    "create_time"       : "2024/11/21 18:31:22",
    "tags"              : "[]"
  }
}

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

Tip 1: The virtual_interface_id value is the DC Virtual Interface ID, used as the unique identifier

Tip 2: ACTIVE, DOWN are the corresponding values for status

  • DC Direct Connect Physical Connection Object Data:
{
  "measurement": "huaweicloud_dcass_virtual_interface",
  "tags": {
    "RegionId"                : "cn-south-1",
    "project_id"              : "756ada1aa17exxxxb2a16ea41912e52d",
    "enterprise_project_id"   : "320a1900-b6d2-xxxx-a348-0979986b730b",
    "tenant_id"               : "07d662153ada40c5bd984601976xxxx",
    "direct_connect_id"       : "ccaad430-389c-4fe6-xxxx-2543e1b0d1b5",
    "direct_connect_name"     : "vif-xxxx-xx-2g02",
    "status"                  : "ACTIVE"
  },
  "fields": {
    "type"              : "private",
    "bandwidth"         : "500",
    "description"       : "{JSON Data}",
    "location"          : "Shanghaixx-xxx",
    "provider"          : "others",
    "provider_status"   : "ACTIVE",
    "charge_mode"       : "prepayment",
    "device_id"         : "xx.87.xxx.9",
    "hosting_id"        : "345ed71f-91b6-4248-xxxx-952bdb1c3706",
    "port_type"         : "40G",
    "apply_time"        : "2023-05-24T08:53:05.000Z",
    "create_time"       : "2024/11/21 18:31:22",
    "tags"              : "[]"
  }
}

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

Tip 1: The direct_connect_id value is the Physical Connection ID, used as the unique identifier

Tip 2: ACTIVE, DOWN are the corresponding values for status