add metric: net_bits_sent net_bits_recv

This commit is contained in:
Ulric Qin 2022-06-13 18:03:11 +08:00
parent f2e86773e4
commit 7343c20391
2 changed files with 2 additions and 0 deletions

View File

@ -102,7 +102,9 @@ func (s *NetIOStats) Gather(slist *list.SafeList) {
fields := map[string]interface{}{
"bytes_sent": io.BytesSent,
"bits_sent": io.BytesSent * 8,
"bytes_recv": io.BytesRecv,
"bits_recv": io.BytesRecv * 8,
"packets_sent": io.PacketsSent,
"packets_recv": io.PacketsRecv,
"err_in": io.Errin,

View File