Create a sysctl
host collector
#1674
Labels
echoes/effort: M
Medium effort changes by the team's standards (default)
type::feature
New feature or request
Describe the rationale for the suggested feature.
The current
sysctl
collector present in troubleshoot is a in cluster collector:troubleshoot/pkg/collect/sysctl.go
Lines 60 to 65 in f0b8de6
In our view a
sysctl
collector for the host, before a cluster is actually running is pretty valuable. Particularly for a lot of the work currently being done in embedded cluster - (e.g. replicatedhq/embedded-cluster#1449 as well as ongoing work for arp filter detection).Describe the feature
I would suggest we do a minimal collector for now that just executes
sysctl -a
. Later on we could look into adding support for more parameters if needed but tbh I don't see the need to add support for things such as--filter
for now given how cheap it is to just get the whole thing and later use an analyzer on top of it.The spec I purpose would then become:
Describe alternatives you've considered
We can currently achieve the same thing with a
run
collector. I would argue though that having asysctl
specific collector would be beneficial and reduce a lot of boilerplate and need for complex tests. Taking embedded cluster as an example this is the current spec I wrote to get a set of arp related properties:Notice the need to have 4 separate text analyzers for each of the properties I need to validate. Also, this will require us to have dedicated tests for these properties in order to validate the analyzer and collector are doing what we expect them to do VS us validating that the spec we write is what we need and letting troubleshoot do its job.
We could also argue that we can do by with an analyzer only without the collector. This would require us to always ensure the input to the analyzer is the same as what we expect, making it less user friendly and more error prone.
The text was updated successfully, but these errors were encountered: