ansible-datadog icon indicating copy to clipboard operation
ansible-datadog copied to clipboard

Can a oom_kill_enabled option be added to config options?

Open ckolos-work opened this issue 1 year ago • 1 comments

In the documentation oom_kill/#configuration, it's stated that /etc/datadog-agent/system-probe.conf file must have the line oom_kill_enabled: true present (in conjunction with configuring conf.d/oom_kill.d/conf.yaml) to monitor for oom_kill events. However there is no corresponding config option in dd role varaibles to do this. I can see only the following options for system_probe_config:

>>{{- if (eq .OS "windows")}}
>>    sysprobe_socket: localhost:3333
>>{{else}}
>>    sysprobe_socket: /opt/datadog-agent/run/sysprobe.sock
>>{{ end }}
>>    log_file: /var/log/datadog/system-probe.log
>>    language_detection:
>>      enabled: false
>>{{- if .InternalProfiling -}}
>>    internal_profiling:
>>      enabled: false
>>      enabled: false
>>      thresholds:
>>        500MB: gc
>>        50%: profile
>>      pressure_levels:
>>        medium: gc

Any chance an oom_kill_enabled option can be added here? Apologies if I've missed something simple...

ckolos-work avatar Oct 26 '23 20:10 ckolos-work

:wave: Hi, have you tried adding using the following in your vars?

system_probe_config:
  enable_oom_kill: true

That should make it work AFAICS.

bkabrda avatar Feb 20 '24 12:02 bkabrda

@ckolos-work hopefully the provided solution was helpful? Given the inactivity, I'm closing this, but feel free to reopen if it's still not solved!

alopezz avatar Jul 19 '24 14:07 alopezz