extension/memorylimiterextension/README.md

Memory Limiter Extension

Status
Stabilitybeta
Distributions[]
IssuesOpen issues Closed issues

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:

1receivers:
2 otlp:
3 protocols:
4 grpc:
5 middlewares:
6 - id: memory_limiter
7 http:
8 middlewares:
9 - id: memory_limiter
10
11extensions:
12 memory_limiter:
13 check_interval: 1s
14 limit_percentage: 1
15 spike_limit_percentage: 0.05

otelcol_memorylimiter_refused_requests: Number of requests refused by the memory limiter extension (Attributes: transport="http" or transport="grpc").

Payloads refused by the extension never reach the receiver, so use otelcol_memorylimiter_refused_requests instead of otelcol_receiver_refused_* to track refused requests.

see memorylimiterprocessor for additional details