Skip to content
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

On OpenBSD amd64 memory stats are missing the buffer cache info #1972

Closed
cjeker opened this issue Feb 15, 2021 · 0 comments · Fixed by #2015
Closed

On OpenBSD amd64 memory stats are missing the buffer cache info #1972

cjeker opened this issue Feb 15, 2021 · 0 comments · Fixed by #2015

Comments

@cjeker
Copy link
Contributor

cjeker commented Feb 15, 2021

Host operating system: output of uname -a

OpenBSD motoko.zyd.ch 6.8 GENERIC.MP#297 amd64

node_exporter version: output of node_exporter --version

node_exporter, version 1.1.1 (branch: master, revision: 41c003d)
build user: me
build date: 20210215-13:38:40
go version: go1.15.7
platform: openbsd/amd64

node_exporter command line flags

no command line flags

Are you running node_exporter in Docker?

No

What did you do that produced an error?

Since the switch for OpenBSD amd64 to not use cgo the memory info lacks correct cache memory info.
The non-amd64 specific version does the right thing but needs cgo. The cache info is not part of struct uvmexp.

What did you expect to see?

HELP node_memory_cache_bytes Memory information field cache_bytes.

TYPE node_memory_cache_bytes gauge

node_memory_cache_bytes 5.822767104e+09

What did you see instead?

HELP node_memory_cache_bytes Memory information field cache_bytes.

TYPE node_memory_cache_bytes gauge

node_memory_cache_bytes 0

ston1th added a commit to ston1th/node_exporter that referenced this issue Apr 3, 2021
Fixes prometheus#1972

Signed-off-by: ston1th <ston1th@giftfish.de>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this issue Apr 9, 2024
Fixes prometheus#1972

Signed-off-by: ston1th <ston1th@giftfish.de>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this issue Apr 9, 2024
Fixes prometheus#1972

Signed-off-by: ston1th <ston1th@giftfish.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant