Huawei Cloud EIP
Collect Huawei Cloud EIP Metrics data.
Configuration¶
Install Func¶
It is recommended to enable Guance Integration - Extensions - DataFlux Func (Automata): All preconditions are automatically installed, please continue with the script installation.
If you deploy Func manually, refer to Manual Deployment of Func
Install Script¶
Note: Please prepare the Huawei Cloud AK that meets the requirements in advance (for simplicity, you can directly grant the global read-only permission
Tenant Guest)
Enable Script in DataFlux Func (Automata)¶
- Log in to the Guance console.
- Click the [Integration] menu, and select [Cloud Account Management].
- Click [Add Cloud Account], select [Huawei Cloud], and fill in the required information on the interface. If you have already configured the cloud account information before, you can ignore this step.
- Click [Test], and after the test is successful, click [Save]. If the test fails, please check whether the relevant configuration information is correct and test again.
- 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.
- Click the [Integration] button on the cloud account details page, find
Huawei Cloud EIPunder theNot Installedlist, and click the [Install] button to pop up the installation interface for installation.
Enable Script Manually¶
-
Log in to the Func console, click [Script Market], enter the Guance script market, and search for
integration_huaweicloud_eip. -
Click [Install], and then enter the corresponding parameters: Huawei Cloud AK, SK, and account name.
-
Click [Deploy Startup Script], the system will automatically create the
Startupscript set and automatically configure the corresponding startup script. -
After enabling, you can see the corresponding automatic trigger configuration in "Management / Automatic Trigger Configuration". Click [Execute] to execute it immediately without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.
Verification¶
- In "Management / Automatic Trigger Configuration", confirm whether the corresponding task has the corresponding automatic trigger configuration, and you can also check the corresponding task records and logs to see if there are any exceptions.
- In Guance, check whether asset information exists in "Infrastructure - Resource Catalog".
- In Guance, check whether there is corresponding monitoring data in "Metrics".
Metrics¶
Collect Huawei Cloud EIP Metrics, and you can collect more Metrics through configuration Huawei Cloud EIP Metrics Details
| Metric ID | Metric Name | Metric Meaning | Value Range | Measurement Object | Monitoring Period (Original Metric) |
|---|---|---|---|---|---|
upstream_bandwidth |
Outbound Bandwidth | This Metric is used to count the network speed of the test object leaving the cloud platform (the original Metric is upstream bandwidth). Unit: bit/s | ≥ 0 bit/s | Bandwidth or Elastic IP | 1 minute |
downstream_bandwidth |
Inbound Bandwidth | This Metric is used to count the network speed of the test object entering the cloud platform (the original Metric is downstream bandwidth). Unit: bit/s | ≥ 0 bit/s | Bandwidth or Elastic IP | 1 minute |
upstream_bandwidth_usage |
Outbound Bandwidth Usage | This Metric is used to count the bandwidth usage of the measurement 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 count the bandwidth usage of the measurement 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 count the cumulative network traffic of the test object leaving the cloud platform in one minute (the original Metric is upstream traffic). Unit: bytes | ≥ 0 bytes | Bandwidth or Elastic IP | 1 minute |
down_stream |
Inbound Traffic | This Metric is used to count the cumulative network traffic of the test object entering the cloud platform in one minute (the original Metric is downstream traffic). Unit: bytes | ≥ 0 bytes | Bandwidth or Elastic IP | 1 minute |
Object¶
After the data is synchronized normally, you can view the data in "Infrastructure - Resource Catalog" in Guance.
{
"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,fieldsmay change with subsequent updates.Tip 1: The value of
tags.eip_idis the EIP ID, which is used as a unique identifier.Tip 2:
statusis the status corresponding to VPC.