Giter VIP home page Giter VIP logo

Comments (10)

SuperQ avatar SuperQ commented on July 24, 2024

Interesting, what kernel version are you using? The current code parses IPv6 via the same hex format.

from procfs.

SuperQ avatar SuperQ commented on July 24, 2024

@matthiasr, where did you find the sample of a /proc/net/ip_vs that contained an IPv6 in the format of DEADBEEF000000000000000000000001:1F90?

from procfs.

matthiasr avatar matthiasr commented on July 24, 2024

I don't remember I'm afraid. I hope I configured this on some machine and this is what I got …

from procfs.

matthiasr avatar matthiasr commented on July 24, 2024

Actually, reading prometheus/node_exporter#67 I don't think I did. I had no IPv6 example to work off and it probably never worked this way.

from procfs.

matthiasr avatar matthiasr commented on July 24, 2024

Paging @juliusv who, if I remember correctly, had a hand or two in the IPv6 support for IPVS :)

from procfs.

filippog avatar filippog commented on July 24, 2024

@SuperQ these machines run a mix of 4.4 and 4.9 though IIRC we've seen the same with older kernels e.g. 3.16

from procfs.

juliusv avatar juliusv commented on July 24, 2024

@matthiasr I didnt touch this procfs file back then, but I added a Generic Netlink interface to read and write IPVS configs (which was needed because the old sockopt-based interface couldn't accommodate v6 addresses). You can take a look at what the Netlink interface looks like today, maybe it can give you the same answers: https://github.com/torvalds/linux/blob/ca78d3173cff3503bcd15723b049757f75762d15/net/netfilter/ipvs/ip_vs_ctl.c#L2836

https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/uapi/linux/ip_vs.h#L279

from procfs.

matthiasr avatar matthiasr commented on July 24, 2024

Hokay, I have no idea what how to read those 😆

If the [aaaa:bbbb:…] format is what actually exists in the wild I'm inclined to just roll with it

from procfs.

juliusv avatar juliusv commented on July 24, 2024

SGTM

from procfs.

filippog avatar filippog commented on July 24, 2024

Confirmed working, thanks a lot @matthiasr ! I've opened prometheus/node_exporter#576 to add this to node_exporter

from procfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.