-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
netdev: Add ifAlias label #3087
netdev: Add ifAlias label #3087
Conversation
d4241aa
to
a193625
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a useful idea, but the implementation needs work.
First, any parsing of /sys
needs to happen in https://github.com/prometheus/procfs.
Second, this needs to go in netdev_linux.go
, not the common file. This would break on non-Linux builds.
@SuperQ thank you for your response, will fix that. As for the second part, do you want to create some common functions to construct labels and etc (something like |
@SuperQ I've updated the code. Please review once you're available. |
7aff8e8
to
39fd82b
Compare
39fd82b
to
b6d513c
Compare
Signed-off-by: Tomas Vilemaitis <tomas.vilemaitis@gmail.com>
b6d513c
to
40dce8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
ping @discordianfish 🙏 |
Signed-off-by: Tomas Vilemaitis <tomas.vilemaitis@gmail.com>
Signed-off-by: Tomas Vilemaitis <tomas.vilemaitis@gmail.com> Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
This is a very handy label to have. Adding it as a option, which can be enabled when needed, to avoid breaking working stuff.