Skip to content

Comments

memory_bsd: Fix a problem fetching the user wire count on FreeBSD#2584

Merged
SuperQ merged 1 commit intoprometheus:masterfrom
phyber:20230126-fix_freebsd_meminfo_user_wired_count
Feb 13, 2023
Merged

memory_bsd: Fix a problem fetching the user wire count on FreeBSD#2584
SuperQ merged 1 commit intoprometheus:masterfrom
phyber:20230126-fix_freebsd_meminfo_user_wired_count

Conversation

@phyber
Copy link
Contributor

@phyber phyber commented Jan 26, 2023

This PR fixes a problem with fetching the vm.stats.vm.v_user_wire_count sysctl value on FreeBSD.

Without this fix, the following error is encountered:

caller=collector.go:169 level=error msg="collector failed" name=meminfo duration_seconds=1.9608e-05 err="couldn't get memory: cannot allocate memory"

The issue is resolved by setting the correct dataType on the metric.

Signed-off-by: David O'Rourke <david.orourke@gmail.com>
@SuperQ SuperQ merged commit 7f05e31 into prometheus:master Feb 13, 2023
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 this pull request may close these issues.

2 participants