Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont print io errors for cgroups #13274

Merged
merged 2 commits into from Jun 30, 2022

Conversation

vlvkobal
Copy link
Contributor

Summary

It's expectable for cgroups to start/stop frequently. Sometimes it is followed by the PROCFILE: Cannot open file errors in the log file. We shouldn't treat the absence of statistic files for a cgroup as an error. We'll print error messages only if NETDATA_INTERNAL_CHECKS is defined.

Fixes #11397

@github-actions github-actions bot added area/collectors Everything related to data collection collectors/cgroups labels Jun 30, 2022
Copy link
Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran this PR on Slackware current (cgroup V1) and on Arch Linux (cgroup V2), and I observed the expected behavior when NETDATA_INTERNAL_CHECKS was present and not present. LGTM!

@vlvkobal vlvkobal merged commit 124e9e7 into netdata:master Jun 30, 2022
@vlvkobal vlvkobal deleted the remove-cgroup-io-errors branch June 30, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection collectors/cgroups
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[static systemd services] => PROCFILE: Cannot open file '/sys/fs/cgroup/blkio/system.slice/....
3 participants