And when looking into the logs of logstash, we see
{"level":"DEBUG","loggerName":"logstash.instrument.periodicpoller.cgroup","timeMillis":1663308955317,"thread":"LogStash::Runner","logEvent":{"message":"One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu"}}
That simply results in fully empty os object when accessing the Logstash API
Hi Elastic,
please add support to fetch and export
cgroup
metrics when usingcgroup v2
.cgroup v2
is now mostly used by default in current Linux distributions and kernel.Within
elasticsearch
, code has already been introduced to parse thecgroup v2
structure (see also https://github.com/elastic/elasticsearch/blob/main/server/src/main/java/org/elasticsearch/monitor/os/OsProbe.java#L688-L708)Currently https://github.com/elastic/logstash/blob/main/logstash-core/lib/logstash/instrument/periodic_poller/cgroup.rb only supports parsing
cgroup v1
structure. Example information of logstash, running indebug
mode within k8s1.22.4
.And when looking into the logs of logstash, we see
That simply results in fully empty
os
object when accessing the Logstash API