Skip to content

Commit

Permalink
Do not force OOMKill (netdata#16115)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoftsm authored Oct 3, 2023
1 parent 3baedcc commit eede060
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions collectors/ebpf.plugin/ebpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2170,12 +2170,6 @@ static inline void ebpf_enable_specific_chart(struct ebpf_module *em, int disabl
{
em->enabled = NETDATA_THREAD_EBPF_RUNNING;

// oomkill stores data inside apps submenu, so it always need to have apps_enabled for plugin to create
// its chart, without this comparison eBPF.plugin will try to store invalid data when apps is disabled.
if (!strcmp(em->info.thread_name, "oomkill")) {
em->apps_charts = NETDATA_EBPF_APPS_FLAG_YES;
}

if (!disable_cgroup) {
em->cgroup_charts = CONFIG_BOOLEAN_YES;
}
Expand Down

0 comments on commit eede060

Please sign in to comment.