Skip to content

Commit

Permalink
Use memory ballast extension
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Dec 16, 2022
1 parent eeadf7c commit ad0855c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deployments/salt/templates/agent_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ receivers:
static_configs:
- targets: ['127.0.0.1:8888']

extensions:
memory_ballast:
size_mib: ${SPLUNK_BALLAST_SIZE_MIB}

processors:
memory_limiter:
ballast_size_mib: ${SPLUNK_BALLAST_SIZE_MIB}
check_interval: 2s
limit_mib: ${SPLUNK_MEMORY_LIMIT_MIB}

Expand All @@ -28,6 +31,7 @@ exporters:
loglevel: info

service:
extensions: [memory_ballast]
pipelines:
metrics:
receivers: [otlp, prometheus]
Expand Down

0 comments on commit ad0855c

Please sign in to comment.