Skip to content

Commit

Permalink
Set a default queue size
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyll committed Apr 21, 2021
1 parent 970fa7f commit e2d9182
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exporter/prometheusremotewriteexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func createMetricsExporter(_ context.Context, params component.ExporterCreatePar
exporterhelper.WithQueue(exporterhelper.QueueSettings{
Enabled: true,
NumConsumers: 1,
// TODO(jbd): Allow users to modify the queue size.
QueueSize: 10000,
// TODO(jbd): Adjust the default queue size
// and allow users to modify the queue size.
}),
exporterhelper.WithRetry(prwCfg.RetrySettings),
exporterhelper.WithShutdown(prwe.Shutdown),
Expand Down

0 comments on commit e2d9182

Please sign in to comment.