-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
OpenBSD net plugin only reporting in/out bytes #12977
Comments
Hi, If you look at the net plugin readme it says the following:
The plugin in telegraf, does not shell out to call netstat, instead it relies on gopsutil to collect and return the data. It does look like darwin uses My suggestion is to go file a bug on gopsutil asking for an enhancement to what is returned. If that gets fixed or changed, then Telegraf would also benefit. Thanks! |
Okay I have opened a bug report there. Thanks! |
@powersj Hi, My pull request has been merged to the upstream library. This issue should be resolved when the changes make it to telegraf. Thanks! |
@amarinderca thank you for taking the time to put up a PR and getting that fixed. gopsutil usually does a monthly release. I'll put a reminder on my calendar to grab the update at the end of the month. If I forget or you see it released before then, please feel free to remind me ;) |
I have put up #15272 which includes an update to gopsutil library. It includes the release with the bug fix from your issue. Could you please download artifacts from that PR, which will be attached as a comment ~30mins from this message. Could you please confirm it resolves the original issue? Thanks! |
@powersj I can confirm that the issue is now resolved. I was able to compile the package from the git commit you mentioned on OpenBSD 7.5 via ports system. I had to modify the port Makefile and update the MODGO_MODULES in modules.inc with the current version numbers of go mods. See the small demo attached. Thanks! |
@amarinderca thank you very much for confirming! |
Relevant telegraf.conf
Logs from Telegraf
System info
OpenBSD 7.1 and 7.2, telegraf 1.22.0 and telegraf 1.22.4
Docker
No response
Steps to reproduce
Expected behavior
We should get same data from
netstat -ibden
as freebsd with error, dropped, bytes, and packets in/out reported.Actual behavior
We only get bytes in/out. OpenBSD behaves differently where
netstat -ibn
should be used for bytes in/out and-idn
used for dropped and packets in/out, and-ien
used for errors and packers in/out, and-in
reports packets and fail in/outAdditional info
The text was updated successfully, but these errors were encountered: