Memory Limiter Extension
The memory limiter extension is used to prevent out of memory situations on
the collector. The extension will potentially replace the Memory Limiter Processor.
It provides better guarantees from running out of memory as it will be used by the
receivers to reject requests before converting them into OTLP. All the configurations
are the same as Memory Limiter Processor.
This extension can be used as an extension for all HTTP and gRPC receivers that
are configured through the standard confighttp and configgrpc libraries. For
example, to configure this extension in the OTLP receiver:
receivers:
otlp:
protocols:
grpc:
middlewares:
- id: memory_limiter
http:
middlewares:
- id: memory_limiter
extensions:
memory_limiter:
check_interval: 1s
limit_percentage: 1
spike_limit_percentage: 0.05
see memorylimiterprocessor for additional details