Open GBBx opened 2 months ago
Could you open debug mode and get more debug logs of these collector? It seems like a syscall compatibility problem
I don't see any errors in the log
# uname -a
OpenBSD fox.my.domain 7.5 GENERIC.MP#138 arm64
# node_exporter --version
node_exporter, version 1.7.0 (branch: non-git, revision: non-git)
build user: openbsd_ports
build date: 2024-03-21
go version: go1.22.1
platform: openbsd/arm64
tags: unknown
But I also don't have an OS collector active
# curl localhost:9100/metrics -s | grep "^node.*success"
node_scrape_collector_success{collector="boottime"} 1
node_scrape_collector_success{collector="cpu"} 1
node_scrape_collector_success{collector="diskstats"} 1
node_scrape_collector_success{collector="filesystem"} 1
node_scrape_collector_success{collector="loadavg"} 1
node_scrape_collector_success{collector="meminfo"} 1
node_scrape_collector_success{collector="netdev"} 1
node_scrape_collector_success{collector="os"} 0
node_scrape_collector_success{collector="textfile"} 1
node_scrape_collector_success{collector="time"} 1
node_scrape_collector_success{collector="uname"} 1
Here is a debug log with collector=os
:
ts=2024-09-01T20:33:01.244Z caller=os_release.go:183 level=debug collector=os msg="no os-release
file found" files=/etc/os-release,/usr/lib/os-release,/System/Library/CoreServices/SystemVersion.plist
@JimmyFan24 , thanks for the hint and sorry for the delay. Yes, the debug mode solves most of the collectors and only the "os" collector failed.
As far as I can see, there's no os-release file in OpenBSD and the only way to get the OS version is by uname
.
So you're saying that normally these collectors fail but with debug logging enabled they don't? Can you please double check? That seems unlikely..
Host operating system: output of
uname -a
node_exporter version: output of
node_exporter --version
node_exporter command line flags
node_exporter log output
Are you running node_exporter in Docker?
No.
What did you do that produced an error?
I updated OpenBSD from 7.3 to 7.5 and node_exporter from 1.5.0 to 1.7.0. These collectors worked on the old versions.
What did you expect to see?
The collectors should still work.
What did you see instead?
The filesystem, os, netdev and meminfo collectors fail (I can't errors in the log about the OS collector).