prometheus / prometheus/node_exporter
Node_exporter isn't reading transmit data on enp1s0
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13.8k
- Forks
- 2.7k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 8
Description
node_exporter isn't reading transmit data on enp1s0
Host operating system: output of uname -a
Linux Mercury 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
node_exporter version: output of node_exporter --version
quay.io/prometheus/node-exporter:latest
node_exporter command line flags
- '--path.rootfs=/host'
- '--collector.netdev'
- '--collector.netclass'
- '--collector.textfile.directory=/var/lib/node_exporter/textfile_collector'
- '--log.level=debug'
node_exporter log output
ts=2024-06-16T14:52:56.157Z caller=node_exporter.go:193 level=info msg="Starting node_exporter" version="(version=1.8.1, branch=HEAD, revision=400c3979931613db930ea035f39ce7b377cdbb5b)"
ts=2024-06-16T14:52:56.158Z caller=node_exporter.go:194 level=info msg="Build context" build_context="(go=go1.22.3, platform=linux/amd64, user=root@7afbff271a3f, date=20240521-18:36:22, tags=unknown)"
ts=2024-06-16T14:52:56.158Z caller=diskstats_common.go:111 level=info collector=diskstats msg="Parsed flag --collector.diskstats.device-exclude" flag=^(z?ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\d+n\d+p)\d+$
ts=2024-06-16T14:52:56.159Z caller=diskstats_linux.go:265 level=error collector=diskstats msg="Failed to open directory, disabling udev device properties" path=/run/udev/data
ts=2024-06-16T14:52:56.159Z caller=filesystem_common.go:111 level=info collector=filesystem msg="Parsed flag --collector.filesystem.mount-points-exclude" flag=^/(dev|proc|run/credentials/.+|sys|var/lib/docker/.+|var/lib/containers/storage/.+)($|/)
ts=2024-06-16T14:52:56.159Z caller=filesystem_common.go:113 level=info collector=filesystem msg="Parsed flag --collector.filesystem.fs-types-exclude" flag=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$
ts=2024-06-16T14:52:56.159Z caller=node_exporter.go:111 level=info msg="Enabled collectors"
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=arp
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=bcache
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=bonding
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=btrfs
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=conntrack
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=cpu
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=cpufreq
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=diskstats
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=dmi
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=edac
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=entropy
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=fibrechannel
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=filefd
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=filesystem
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=hwmon
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=infiniband
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=ipvs
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=loadavg
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=mdadm
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=meminfo
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=netclass
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=netdev
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=netstat
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=nfs
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=nfsd
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=nvme
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=os
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=powersupplyclass
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=pressure
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=rapl
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=schedstat
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=selinux
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=sockstat
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=softnet
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=stat
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=tapestats
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=textfile
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=thermal_zone
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=time
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=timex
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=udp_queues
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=uname
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=vmstat
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=watchdog
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=xfs
ts=2024-06-16T14:52:56.160Z caller=node_exporter.go:118 level=info collector=zfs
ts=2024-06-16T14:52:56.161Z caller=tls_config.go:313 level=info msg="Listening on" address=[::]:9100
ts=2024-06-16T14:52:56.161Z caller=tls_config.go:316 level=info msg="TLS is disabled." http2=false address=[::]:9100
Are you running node_exporter in Docker?
yes
What did you do that produced an error?
localhost:9100/metrics doesn't include "enp1s0":
TYPE node_network_transmit_bytes_total counter
node_network_transmit_bytes_total{device="eth0"} 0
node_network_transmit_bytes_total{device="eth1"} 3.502584e+06
node_network_transmit_bytes_total{device="lo"} 0
What did you expect to see?
node_network_transmit_bytes_total{device="enp1s0"}83.502584e+06
What did you see instead?
node_network_transmit_bytes_total{device="eth0"} 0
node_network_transmit_bytes_total{device="eth1"} 3.502584e+06
node_network_transmit_bytes_total{device="lo"} 0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the netdev collector and the /metrics endpoint, then compare the host interface enp1s0 with the interfaces visible inside the Docker container: eth0, eth1, and lo. Done means determining whether the missing interface is caused by the container setup or node_exporter, with a reproducible check for node_network_transmit_bytes_total.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go, linux
- Domain
- networking, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100