Files
telemetry/internal/memorylimiter/testdata/negative_unsigned_limits_config.yaml
Curtis RobertandGitHub c5a2d0e406 [confmap] Return error when decoding negative values into uints (#9169)
**Description:**
This adds a decode hook for unmarshalling negative integers into uint
types. This will now return an error instead of converting negative
values into large uint values.

**Link to tracking Issue:** <Issue number if applicable>
Fixes #9060 

**Testing:**
Added unit tests for confmap functionality, functional tests in memory
limiter processor (the original component this issue was filed against)
2024-04-19 13:48:32 +02:00

14 lines
593 B
YAML

# check_interval is the time between measurements of memory usage for the
# purposes of avoiding going over the limits. Defaults to zero, so no
# checks will be performed. Values below 1 second are not recommended since
# it can result in unnecessary CPU consumption.
check_interval: 5s
# Maximum amount of memory, in MiB, targeted to be allocated by the process heap.
# Note that typically the total memory usage of process will be about 50MiB higher
# than this value.
limit_mib: -2000
# The maximum, in MiB, spike expected between the measurements of memory usage.
spike_limit_mib: -2300