We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node_exporter isn't reading transmit data on enp1s0
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
quay.io/prometheus/node-exporter:latest
- '--path.rootfs=/host' - '--collector.netdev' - '--collector.netclass' - '--collector.textfile.directory=/var/lib/node_exporter/textfile_collector' - '--log.level=debug'
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
yes
localhost:9100/metrics doesn't include "enp1s0":
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
node_network_transmit_bytes_total{device="enp1s0"}83.502584e+06
The text was updated successfully, but these errors were encountered:
I assume you're runnig it in a container without hostnetworking which is needed to capture the host network interfaces: https://github.com/prometheus/node_exporter?tab=readme-ov-file#docker
Sorry, something went wrong.
No branches or pull requests
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
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
The text was updated successfully, but these errors were encountered: