add metric: net_bits_sent net_bits_recv
This commit is contained in:
parent
f2e86773e4
commit
7343c20391
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue