-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Support CgroupsV2 in processors and Metricbeat #16958
Comments
Fedora has adopted it, as of F31: https://fedoraproject.org/wiki/Changes/CGroupsV2 I'll spin a VM sometime and test out what happens. |
Pinging @elastic/integrations (Team:Integrations) |
After a quick test, I don't see any errors being thrown with the system/process or system/process_summary metricsets. |
@fearful-symmetry Did you get any cgroup metrics from system/process for processes that have cgroups applied? |
@andrewkroh I'm mostly looking for errors at this point. Testing this with docker metadata is functionally moot, as the only way to get docker working is to enable enable cgroupv1 backwards compatibility. What other use cases are there? Should I try manually adding PIDs to cgroups or something? |
Yeah, either do that or use systemd to do it for you. systemd supports v2 on fedora31 from what I've read. So maybe install a beat RPM (or some other service) then edit the service unit file to add some resource constraint. |
For inventory:
beats/libbeat/processors/add_docker_metadata/add_docker_metadata.go Lines 219 to 266 in 1d36da7
Also |
For the record - cgroup (v1 and v2) memory metrics issue in APM - elastic/apm#291. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is a good reminder, this is on the board for 7.15. |
@fearful-symmetry is this one done now? It seems to have been moved on the project board without closing the issue. If it is complete, can you point us at the implementation? |
@graphaelli , yep, must have forgotten. Implementation is here: https://github.com/elastic/beats/tree/master/libbeat/metric/system/cgroup/cgv2 |
Just going to close this, since it looks like the issue itself was limited to the basic groupsv2. |
Some Linux distros are starting to adopt CgroupsV2 and the container runtimes are being updated as well. Beats should be updated to support reading data from CgroupsV2. This affects Metricbeat's system/process metricset and some of the
add_*_metadata
processors that try to associate processes to container IDs.The text was updated successfully, but these errors were encountered: