diff --git a/collectors/ebpf.plugin/ebpf.c b/collectors/ebpf.plugin/ebpf.c index 5ccc353fc8fed3..51b2b89723f3ae 100644 --- a/collectors/ebpf.plugin/ebpf.c +++ b/collectors/ebpf.plugin/ebpf.c @@ -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; }