Log cgroup if process found in unexpected slice (#3107)

This commit is contained in:
maddieford 2024-04-09 13:23:29 -07:00 коммит произвёл GitHub
Родитель 5373e9de8c
Коммит add195ca74
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -231,9 +231,9 @@ class Agent(object):
if not cpu_slice_matches or not memory_slice_matches:
log_cgroup_warning("The Log Collector process is not in the proper cgroups:", send_event=False)
if not cpu_slice_matches:
log_cgroup_warning("\tunexpected cpu slice", send_event=False)
log_cgroup_warning("\tunexpected cpu slice: {0}".format(cpu_cgroup_path), send_event=False)
if not memory_slice_matches:
log_cgroup_warning("\tunexpected memory slice", send_event=False)
log_cgroup_warning("\tunexpected memory slice: {0}".format(memory_cgroup_path), send_event=False)
sys.exit(logcollector.INVALID_CGROUPS_ERRCODE)