prometheus / prometheus/node_exporter

several collectors fail on OpenBSD 7.5

Open
#3,084 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
13.8k
Forks
2.7k
Avg merge
1d 23h
Merged PRs (30d)
8

Description

Host operating system: output of uname -a
OpenBSD hostname 7.5 GENERIC.MP#82 amd64
node_exporter version: output of node_exporter --version
node_exporter, version 1.7.0 (branch: non-git, revision: non-git)
  build user:       openbsd_ports
  build date:       2024-03-15
  go version:       go1.22.1
  platform:         openbsd/amd64
  tags:             unknown
node_exporter command line flags
--collector.textfile.directory='/var/node_exporter/textfile_collector'
node_exporter log output
caller=collector.go:169 level=error msg="collector failed" name=filesystem duration_seconds=5.838e-06 err="function not implemented"
caller=collector.go:169 level=error msg="collector failed" name=netdev duration_seconds=6.702e-06 err="couldn't get netstats: function not implemented"
caller=collector.go:169 level=error msg="collector failed" name=meminfo duration_seconds=1.2519e-05 err="couldn't get meminfo: function not implemented"
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).

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"} 0
node_scrape_collector_success{collector="loadavg"} 1
node_scrape_collector_success{collector="meminfo"} 0
node_scrape_collector_success{collector="netdev"} 0
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report on OpenBSD 7.5 and query the /metrics endpoint with the shown collector-success grep. Start with the filesystem, os, netdev, and meminfo collector entry points and their logged "function not implemented" errors. Done means these collectors report success on OpenBSD 7.5 without the reported failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability-sre, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.