Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose tunning options via expvar #2496

Merged
merged 12 commits into from
Oct 5, 2020
Prev Previous commit
Next Next commit
Code clean up
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
  • Loading branch information
dstdfx committed Oct 5, 2020
commit 534841105695f5322371b9d187e040b81a5414a3
2 changes: 1 addition & 1 deletion cmd/agent/app/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ func TestExposeTuningOptions(t *testing.T) {
assert.Equal(t, 4242, gotMaxPacketSize)
assert.Equal(t, 42, gotQueueSize)
assert.Equal(t, 42, gotWorkers)
}
}
1 change: 0 additions & 1 deletion cmd/collector/app/builder_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ func (cOpts *CollectorOptions) InitFromViper(v *viper.Viper) *CollectorOptions {
return cOpts
}


// ExposeTuningOptions exposes collector's tuning options via expvar.
func ExposeTuningOptions(opts *CollectorOptions) {
expvar.NewInt(collectorNumWorkers).Set(int64(opts.NumWorkers))
Expand Down
2 changes: 1 addition & 1 deletion cmd/collector/app/builder_flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ func TestExposeTuningOptions(t *testing.T) {

assert.Equal(t, 42, gotNumWorkers)
assert.Equal(t, 42, gotQueueSize)
}
}