-
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
procstat metric not populated on FreeBSD arm64 #13933
Comments
Hi, As I mentioned in the previous issue we do not provide an arm64 build for FreeBSD, so to work on this I would need you to build and test PRs. The
Is this the actual output of procstat_lookup? Before diving much further into this I want to be certain that running is actually non-zero. If it is zero, then there will be no Finally, the data is all gathered via gopsutil's library, so I think we should try outside of telegraf as well. If you create a directory and create two files: main.go: package main
import (
"fmt"
"os"
"github.com/shirou/gopsutil/process"
)
func main() {
currentPid := os.Getpid()
myself, err := process.NewProcess(int32(currentPid))
if err != nil {
panic(err)
}
fmt.Println(myself.Name())
fmt.Println(myself.String())
fmt.Println(myself.NumThreads())
fmt.Println(myself.RlimitUsage(true))
fmt.Println(myself.Status())
} go.mod - replace the go version with whatever you have locally:
And either run this directly via |
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Forums or provide additional details in this issue and reqeust that it be re-opened. Thank you! |
Sorry for the late answer
Yes that's actual output
Output is:
|
Gopsutil is providing a nil name and other metrics, which means we are skipping the process. Here is the code in Telegraf, which checks for the nil name and commets that if this is nil we assume we are not getting anything else. Which based on the output, seems to also return default values or nil. I would suggest an upstream issue as part of the gopsutil project to get this added or enabled there. You can use the example code I provided in my previous comment of a way to reproduce. |
I have put up #15272 which includes an update to gopsutil library. Your upstream issue appears to have been fixed back in March so it is likely that our last release already has this fix. Could you please download artifacts from that PR, which will be attached as a comment ~30mins from this message, and let me know if this resolves this issue? Thanks! |
I downloaded ./telegraf-1.31.0/usr/bin/telegraf --config /usr/local/etc/telegraf.conf --debug Got a panic
|
Well that's no good! Can you file a second upstream issue please with that stack trace. It does appear that gopsutil's createTimeWithContext function is the cause of the crash. |
@sdalu I'm not able to reproduce this on the latest release of telegraf, is this issue still affecting you? |
I don't see any more blank panels in my Grafana board, it seems fixed. |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.28.0 FreeBSD 13.2 arm64
Docker
No response
Steps to reproduce
Expected behavior
Some
procstat
andprocstat_lookup
metrics, like:Actual behavior
Only
procstat_lookup
is generated, noprocstat
Additional info
Don't know if behaviour is specific to
arm64
or the whole arm family.Tested on
amd64
, and it's working fine, so it is not specific to FreeBSDThe text was updated successfully, but these errors were encountered: