-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[inputs.swap]: Error in plugin: error getting swap memory info: xswdev version mismatch #5395
Comments
Would it be possible to run this Go program? Place the following code in a file package main
import (
"fmt"
"github.com/shirou/gopsutil/mem"
)
func main() {
res, err := mem.SwapMemory()
if err != nil {
fmt.Println(err)
return
} else {
fmt.Println(res)
}
} To run it you will need Go 1.9 or later:
Can you also run |
Hi @danielnelson, this is the output of the code:
The out put of
and
|
I opened an issue with gopsutil, if you could subscribe to that issue I'm sure there will be some follow up questions. |
Is this fixed in latest version |
Unfortunately no, we need to update gopsutil to v2.19.02. We don't normally update gopsutil on patch releases unless something major comes up, because it often causes other issues, so this will likely need to wait for 1.11. I will update master now though, are you using our official packages? |
I use the port: https://www.freshports.org/net-mgmt/telegraf/ |
Relevant telegraf.conf:
System info:
Steps to reproduce:
use swap on ZFS only:
Output of
swapinfo
:Expected behavior:
Get metrics/status from swap
Actual behavior:
Additional info:
[Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered: