Help understand nic percentage metrics #742
-
Reviewing nic_common metrics, I am trying to make sense of the metrics nic_rx_percent and nic_tx_percent, which appear to be calculated by the nic plugin based on link speed and bytes received/sent. May be best to use an example. on a 10Gbe link, I have in one case 100MB/sec bytes sent. This should calculate to about 10% utilization: But the nic_tx_utilization at this point is .0200. If I display that as a percent in Grafana, it displays .02% Please advise. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So plugin would do this calculation:
For your example above, As the rx_bytes and tx_bytes values are changing too frequent, can you please share value of both of them along with speed and UI screenshot at the same time? Also, I assume you are running on the Harvest 21.11.0 release, please confirm. |
Beta Was this translation helpful? Give feedback.
So plugin would do this calculation:
tx_bytes: 334657
rx_bytes: 21411
speed(in bytes): 125000000
Calculate tx_perc and rx_perc:- both are in same unit
tx_perc: (tx_bytes/speed) 0.002677
rx_perc: (rx_bytes/speed) 0.000017
set util percent from max of above
util_perc: max(tx_perc, rx_perc) 0.002677
For your example above, As the rx_bytes and tx_bytes values are changing too frequent, can you please share value of both of them along with speed and UI screenshot at the same time?
A…