Skip to content
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

Assign container name to /sys/class/net//ifalias in docker compose #11796

Open
BuxtonCalvin opened this issue May 7, 2024 · 0 comments
Open

Comments

@BuxtonCalvin
Copy link

Description

Using node exporter, I'd like to be able to extract a container name from the container's virtual interface 'ifalias' data. I use node exporter to do this for other '/sys/class/net/' docker network metrics and a typical metric looks like this:
node_network_info{address="02:99:00:90:03:b2",adminstate="up",broadcast="ff:ff:ff:ff:ff:ff",device="vethfe8c6f3",duplex="full",ifalias="",operstate="up"} 1

The ifalias field is currently empty for both the metric and the ifalias file on the host for my docker containers. I'd like to be able to assign the container name to this field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant