Comments (8)
I see two possible go libraries to do that :
- https://github.com/safchain/ethtool : to get stats with syscalls
- https://github.com/shirou/gopsutil/tree/master/net : to get stats from linux net/dev files
from skydive.
Something we have to take care is the way the library is implemented especially around the syscalls as we got issues with namespace and goroutine. Something fixed in ethtool lib but that doesn't mean this is the best choice.
from skydive.
I'm currently playing with the ethtool lib, and indeed, I'm having issues with syscall. I was suggesting your ethtool lib to avoid another dependency. but it might be safer to use gopsutil that only poll net/dev files. BTW, should it be treated as a new probe?
from skydive.
I meant that ethtool is safe with namespaces, not sure about gopsutil. And yes it should be treated as another probe polling interface metrics. I'll have a look at gopsutil to be sure.
from skydive.
I had at quick look at gopsutil and indeed no namespace safe, so If we want to use it we will have to send some PR to fix it.
from skydive.
What kind of issue you have with ethtool ? maybe you could open an issue
from skydive.
done :
safchain/ethtool#11
from skydive.
fixed: https://softwarefactory-project.io/r/#/c/6331/
from skydive.
Related Issues (20)
- Lastest docker image not working 534b331ac142 HOT 4
- go.sum is present in the repo and in .gitignore HOT 2
- Add new view section for my custom graph added with cli HOT 5
- Operator projects using the removed APIs in k8s 1.22 requires changes. HOT 3
- Running docker-compose throws error "docker.errors.InvalidArgument: "host" network_mode is incompatible with port_bindings HOT 2
- Archive 002 producing errors on restart HOT 3
- do skydive on docker not support VMs HOT 2
- Failed to create analyzer: not implemented HOT 2
- Migrate from nu7hatch/gouuid to satori/go.uuid HOT 1
- Openstack Neutron with OVN Failed to Retrieve Attributes HOT 1
- Do you still use dashboard.zuul.ansible.com?
- I cannot start agent on freeBSD HOT 1
- Race condition loading initial data from ElasticSearch
- orientdb 3.2 not working HOT 1
- is this project dead? HOT 1
- Rawpacket set to infinity when capturing is not working
- devstack installation fails on golang installation
- do you support vpp? HOT 1
- Is there any plan for skydive to support golang latest version HOT 1
- Long time HOT 3
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 skydive.