Fix undefined process.Processes when building telegraf on Solaris-based system #561
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I attempted to build
telegraf
today onOmniOS
, which is aSolaris
derived system, but based on theIllumos
kernel, and ran into this issue. A bit of digging revealed that nothing builds that would satisfy this requirement. As such, this hack happened.It seems like there's not really much there to support process information on
Solaris
and friends, and I am wondering if there is any demand, and if so, I have done some work to expose but a small subset of what seems to be made available from other operating systems, but perhaps if there is interest, I can at least add a few of those bits as time permits and maybe enhance from there.Thanks, Sam.