-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
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
Expand netdev_linux to include more information from /sys/class/net/*/ #794
Comments
Technically FreeBSD has description too, probably other OS's wouldn't be surprising. |
Sure, this sounds like a good idea. There are a number of extra things in For reference, the documentation is here For example, |
hello! I wanted to check if the
We use Prometheus Operator for monitoring and this is our currently implemented node_exporter version -
|
Ok lets close this issue then. For further info from sys/class/net, please open specific issues if needed |
Linux allows for an administratively set port description for network interfaces, this can be configured with
iproute2
using ip link set dev eth0 alias "LAN interface". This is similar toIF-MIB::ifAlias
orIF-MIB::ifDescr
in the land of SNMP.On Cumulus Linux platforms (a fork of Debian), ifupdown2 allows setting this as part of the
/etc/network/interfaces
file.We (@sfmix) use this for noting which ports are peering participants, backhaul transport, and/or management. We're trying to avoid using the snmp_exporter, since the node_exporter is faster and meets 99% of our requirements. The goal is to filter based on regex of port description for these different used interface descriptions.
It looks like the netdev_linux code parses
/proc/net/dev
file for counters (at least from my horrible Go code parsing skills, or lack of). This data is present in/sys/class/net/eth0/ifalias
.Host operating system: output of
uname -a
Linux switch02-sfo02 4.1.0-cl-6-amd64 #1 SMP Cumulus 4.1.33-1+cl3u11 (2018-01-04) x86_64 GNU/Linux
node_exporter version: output of
node_exporter --version
node_exporter command line flags
./node_exporter --collector.bonding --collector.logind --collector.interrupts --collector.systemd --web.listen-address="100.64.0.7:9100"
Are you running node_exporter in Docker?
No
The text was updated successfully, but these errors were encountered: