Installing the Direct Connect Metric Collection Plug-ins
The Direct Connect plug-ins detect the end-to-end network quality of connections, and mainly monitor two metrics of remote subnets: network latency and packet loss rate.
There are two types of Direct Connect plug-ins:
- dc-nqa-collector: monitors the connections created on the Direct Connect console.
- history-dc-nqa-collector: monitors connections created through self-service.
- Automated connections are requested by yourself on the console and are classified into self-service connections and full-service connections. Each connection has at least a virtual gateway and a virtual interface, and their routes are automatically advertised. Connections in most regions are automated connections.
- Historical connections are requested by email or phone. They do not have virtual gateways and virtual interfaces, and their routes must be manually configured. Historical connections exist only in some regions.
Constraints
The plug-ins support only the Linux OS. ECSs where the plug-ins are to be installed must be in the same VPC as the connection.
Prerequisites
- You have installed the Cloud Eye Agent. For details, see Agent Installation and Configuration.
- The plug-ins have been restored. For details, see Restoring the Agent Configurations (Linux).
- You have obtained the password of user root for logging in to the target ECS.
Using the One-Click Installation Script to Configure the Plug-ins
In some HUAWEI CLOUD regions, you can use the one-click installation script to configure the plug-ins. Table 2 lists the supported regions.
- Log in to an ECS as user root.
- Run the following command to create the user.txt file in the usr/local/ directory and add user information, including the plug-in download link, monitored resource ID, and remote IP address:
cd usr/local/
vi user.txt
user.txt is in the following format:
Figure 1 Example of format
Parameter descriptions are as follows.
- Plug-in download link: To monitor the connections created on the Direct Connect console, select the dc-nqa-collector plug-in. To monitor the connections created through self-service, select the history-dc-nqa-collector plug-in. For details about the download address of the installation package in each region, see Table 1.
- Information about monitored resources: One monitored resource occupies one line, and consists of a resource ID and a remote IP address that are separated by a comma (,). To add multiple resources, add lines in the same format.
- Resource ID: The value must contain 32 characters, including letters and digits, for example, b95b9fdc-65de-44db-99b1-ed321b6c11d0 or b95b9fdc65de44db99b1ed321b6c11d0.
- If the dc-nqa-collector plug-in is used, the resource ID is the virtual interface ID, which can be queried on the Virtual Interfaces page of the Direct Connect console.
- If the history-dc-nqa-collector plug-in is used, the resource ID is the ID of the connection created through self-service, which can be queried on the Historical Connections page of the Direct Connect console.
- Remote IP address: indicates the remote IP address that needs to be pinged with the VPC. Generally, it is the remote gateway IP address.
- If the dc-nqa-collector plug-in is used, enter the IP address of the remote gateway, which can be obtained on the Virtual Gateways page of the Direct Connect console.
- If the history-dc-nqa-collector plug-in is used, enter the host address in the Remote Subnet column on the Historical Connections page of the Direct Connect console.
- Resource ID: The value must contain 32 characters, including letters and digits, for example, b95b9fdc-65de-44db-99b1-ed321b6c11d0 or b95b9fdc65de44db99b1ed321b6c11d0.
- Ensure that each monitored resource ID matches one remote IP address. You are not allowed to enter multiple IP addresses nor CIDR blocks.
- After the plug-in is installed, if you want to add resources to be monitored, you only need to edit the user.txt file and add the corresponding ID and IP address in sequence.
- Download the one-click installation script to the usr/local/ directory.
wget Download path of the target region
- Run the following command to run the one-click installation script of the plug-in.
If the installation is successful, the information shown in Figure 2 is displayed.
bash dc-installer.sh
- After the Agent is installed, wait for about 1 minute, log in to the management console, and view the Direct Connect monitoring data.
Under Management & Deployment, select Cloud Eye. In the navigation pane on the left, choose Cloud Service Monitoring > Direct Connect. You can click the name of a monitored object to view the latency and packet loss rate.
Figure 3 Network latency and packet loss rate
Last Article: Installing the Plug-in for Collecting GPU and RAID Metrics (Linux)
Next Article: Process Monitoring

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.