rust-extensions/crates/shim/src
Lei Liu 2689bbf250 Ignore notFound error when collect from pid cgroup
When `pids.current` or `pids.max` not exist in cgroup root
(/sys/fs/cgroup/pids/) collect_metrics will print out error level
log "...unable to read a control group file /sys/fs/cgroup/pids/./
pids.current..." continually, this commit will ignore these not
found errors.

As a supplement,if or not set pids.current file in cgroup controller
root directory decided by `CFTYPE_NOT_ON_ROOT` flag, in many commen
environment it is default to enabled. And as a contrast, go version
code will ignore all not found error when collect cgroupv1 metrics:
b67a788072/runtime/v2/runc/task/service.go (L625)

Co-authored-by: Yukiteru <wfly1998@gmail.com>

Signed-off-by: Lei Liu <liulei.pt@bytedance.com>
2024-11-05 19:33:58 +00:00
..
asynchronous <rshim>Improve the events report 2024-10-30 23:14:55 +00:00
synchronous fix: remove meaningless input from other_error macro 2024-10-30 00:05:16 +00:00
sys fix: All unused re-export to pass clippy 2024-10-05 14:55:48 +00:00
args.rs fix: Correct lint warnings, bump toolchain version due to `cargo::key=value` build directive which is reserved for future use 2024-10-05 14:55:48 +00:00
cgroup.rs Ignore notFound error when collect from pid cgroup 2024-11-05 19:33:58 +00:00
error.rs fix: remove meaningless input from other_error macro 2024-10-30 00:05:16 +00:00
event.rs Run fmt 2022-09-29 11:55:31 -07:00
lib.rs change socket path 2024-10-30 23:15:24 +00:00
logger.rs Use RUST_LOG env to configure logging if present 2024-03-06 20:28:03 +00:00
monitor.rs split async and sync codes for runc-shim and shim 2022-03-07 22:34:51 +08:00
mount.rs fix(overlay): If there are a large number of overlay layers, the container cannot be started 2024-05-28 22:14:28 +00:00
reap.rs fix: remove meaningless input from other_error macro 2024-10-30 00:05:16 +00:00
util.rs Update nix crate 2023-10-05 11:37:27 -07:00