After creating a workload cluster, the platform monitoring can only recognize network card names matching patterns like eth.*|en.*|wl.*|ww.* by default. For user-defined network card names, network traffic data cannot be viewed on the monitoring page. To address this, the platform supports modifying relevant resource parameters to manually capture network card traffic data.
Log in to the control node of the global cluster and execute the following commands using kubectl.
First, find the moduleinfo resource name corresponding to the workload cluster in the global cluster:
Example output:
Edit the moduleinfo resource of the workload cluster, replacing ovn-0954f21f0359720e8c115804376b3e7e with the workload cluster moduleinfo resource name from the previous step:
Add the valuesOverride field and modify the field and regular expression according to the comment information:
Wait 10 minutes, then check the network-related charts on the node monitoring page to ensure the changes take effect.