Show only eth0 traffic


I’m new to Grafana and Prometheus and I want to try something.
I installed it yesterday on my docker environment on a pi. I have used a tutorial to set it up. I have used dashboard id 1860 to monitor my pi.

I now have a great looking dashboard. I only have a question for the networking part. It is now showing all network interfaces that are being used. So also the docker virtual interfaces. How can I only show traffic from eth0?

This is the default query : irate(node_network_receive_bytes_total{instance=“$node”,job=“$job”}[$__rate_interval])*8

I have tried to add node_network_iface_id{device=“eth0” after the 8 with a space but that didn’t work. Is it even possible to filter on only interface eth0?

Sorry for the maybe simple and stupid question. :slightly_smiling_face:


Choose it in the “device” label like this:

irate(node_network_receive_bytes_total{instance="$node", job="$job", device="eth0"}[$__rate_interval])*8


Yeah that is what I needed. Thank you very much for the support.

Have a great day.

1 Like