Skip to content

[RFE] Support OpenBSD 'CP_SPIN' CPU state in some way #1650

@siebenmann

Description

@siebenmann

In 2018, OpenBSD introduced a new (system) CPU state, CP_SPIN, that counts time the system is stuck spinning on a lock: https://marc.info/?l=openbsd-cvs&m=152630109526317&w=2

The node exporter currently doesn't know about this state, which means that on relevant OpenBSD versions its node_cpu_seconds_total figures are incomplete and break various assumptions that people using them may have (for example, that the total of everything for a single CPU sums to more or less 1). If you want to limit to building on only the currently supported OpenBSD versions, this is straightforward, since both of them should have CP_SPIN and collector/cpu_openbsd.go can just use it.

(I would be happy to prepare a pull request with this small change.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions