node_network_transmit_bytes_total

196 views
Skip to first unread message

Michael Ströder

unread,
Apr 7, 2020, 4:43:51 AM4/7/20
to Prometheus Users
HI!

I'm trying to measure the network load on my Internet connection but I'm
confused by the numbers.

Data is exported via node_exporter node_exporter-1.0.0rc.0 (packaged for
openSUSE [1]).

At the end of a test download wget displays 5.93MB/s download rate which
is a plausible value for my Internet connection.
But the numbers returned by prometheus 2.17.1 are confusing me.

The query

rate(node_network_transmit_bytes_total{device="dsl0"}[60s])

returns a graph where I can see the correct download period but it only
says "110k" on the Y-axis. From my understanding that should be rather
~5900k.

Any hint what I'm doing wrong?
Thanks in advance.

Ciao, Michael.


[1]
https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-node_exporter

Brian Candler

unread,
Apr 7, 2020, 6:12:01 AM4/7/20
to Prometheus Users
That's an average over 60 seconds.  How long did the wget transfer take (or what total size was it?)

Also: if you're downloading with wget, you probably want node_network_receive_bytes_total.  The amount of data transmitted will be mainly the ACKs.

Michael Ströder

unread,
Apr 7, 2020, 6:29:25 AM4/7/20
to Brian Candler, Prometheus Users
On 4/7/20 12:12 PM, Brian Candler wrote:
> That's an average over 60 seconds.  How long did the wget transfer take
> (or what total size was it?)

Yes, I understand it calculates the average over 60s. But no problem in
this case because download was lasting 13 min and scrape interval was 12s.

> Also: if you're downloading with wget, you probably want
> node_network_receive_bytes_total.  The amount of data transmitted will
> be mainly the ACKs.

Ouch! Thanks for pointing me to the obvious.

node_network_receive_bytes_total gives a plausible result. Seems I got
lost watching at all the metric names.

Ciao, Michael.
Reply all
Reply to author
Forward
0 new messages