Add cpu_openbsd - #727
Add cpu_openbsd#727mguegan wants to merge 3 commits into
Conversation
|
Is there a way without that much code duplication? |
|
@discordianfish I think it should be possible by sharing everything in common on both OSes into a common file. Maybe it could be done on a second pass in order to clean up all the mess around like #547 which has a much better approach than this one. |
|
Not sure if relying on @derekmarcotte to clean up stuff is a good pattern :) |
|
Anything else needed here? I'd love to be able to run node_exporter on my OpenBSD boxes. |
|
To be clear: Happy to merge this but first the common bits should be moved to a file that is shared with other freebsd. |
|
Sorry, we ended up going with #805, we still need to do some cleanup of code duplication in the *BSD collection. |
This PR will add support for OpenBSD CPU statistics. I have duplicated the
cpu_freebsdcode and tried to handle the main differences between both OS.This was tested on 6.2R :
@SuperQ