forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
36 lines (29 loc) · 1.17 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
receivers:
examplereceiver:
processors:
memory_limiter:
# empty config
memory_limiter/with-settings:
# 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: 4000
# The maximum, in MiB, spike expected between the measurements of memory usage.
spike_limit_mib: 500
# BallastSizeMiB is the size, in MiB, of the ballast size being used by the process.
# This must match the value of mem-ballast-size-mib command line option (if used)
# otherwise the memory limiter will not work correctly.
ballast_size_mib: 2000
exporters:
exampleexporter:
service:
pipelines:
traces:
receivers: [examplereceiver]
processors: [memory_limiter/with-settings]
exporters: [exampleexporter]