Comments (10)
Interesting, what kernel version are you using? The current code parses IPv6 via the same hex format.
from procfs.
@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.
I don't remember I'm afraid. I hope I configured this on some machine and this is what I got …
from procfs.
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.
Paging @juliusv who, if I remember correctly, had a hand or two in the IPv6 support for IPVS :)
from procfs.
@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.
@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
from procfs.
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.
SGTM
from procfs.
Confirmed working, thanks a lot @matthiasr ! I've opened prometheus/node_exporter#576 to add this to node_exporter
from procfs.
Related Issues (20)
- strings.TrimRight is used instead of TrimSuffix HOT 1
- Use Go 1.20+ Error Wrapping
- Release v0.10.0 does not build with GOOS=windows + GOARCH=amd64 HOT 1
- Slice bound out of range on filterOfflineCPUs HOT 4
- CPU vulnerability reporting from sysfs is broken
- Codespell CI job is broken HOT 6
- netstat.go: File handler leak HOT 2
- Infiniband: could not get ARP entries: failed to parse ARP entry HOT 2
- Couldn't parse \"/proc/stat\": bufio.Scanner: token too long HOT 4
- Export mdstat parsing function HOT 6
- No longer compiles on plan9 HOT 3
- code comment error HOT 1
- parseMemInfo() ignores unit, leading to incorrect results from /proc/meminfo HOT 4
- Unknown NFSd metric line "wdeleg_getattr" on kernel 6.6-rc1 HOT 2
- Add the Scorecard Action to monitor procfs' security posture HOT 2
- procfs has data consistency issues when reading /proc/net/tcp HOT 3
- Feature request: procfs TotalFileDescriptorsLen HOT 4
- CmdLine does not parse argv[i] with whitespace correctly HOT 1
- open /proc/stat: too many open files HOT 2
- procfs still unable to collect IB counters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from procfs.