Skip to content

eBPF cgroup update#16630

Merged
thiagoftsm merged 35 commits intonetdata:masterfrom
thiagoftsm:ebpf_cgroup_update
Mar 7, 2024
Merged

eBPF cgroup update#16630
thiagoftsm merged 35 commits intonetdata:masterfrom
thiagoftsm:ebpf_cgroup_update

Conversation

@thiagoftsm
Copy link
Copy Markdown
Contributor

@thiagoftsm thiagoftsm commented Dec 19, 2023

Summary

Blocked by #16671.

This PR modifies cgroup integration to have charts per service instead of group them in one unique chart.
It also moves from main thread to discovery thread, the integration between plugins.
Finally, it fixes a race condition.

Test Plan
  1. Configure your /etc/netdata/ebpf.d.conf :
[global]
    cgroups = yes
[ebpf programs]
    cachestat = yes
    dcstat = yes
    fd = yes
    oomkill = yes
    process = yes
    shm = yes
    socket = yes
    swap = yes
    vfs = yes
Additional Information
For users: How does this change affect me?

@thiagoftsm thiagoftsm marked this pull request as draft December 19, 2023 03:49
@github-actions github-actions bot added area/collectors Everything related to data collection collectors/ebpf collectors/cgroups labels Dec 19, 2023
@thiagoftsm thiagoftsm marked this pull request as ready for review December 21, 2023 15:30
@thiagoftsm thiagoftsm requested a review from stelfrag December 21, 2023 15:30
@thiagoftsm thiagoftsm force-pushed the ebpf_cgroup_update branch 2 times, most recently from aa93daa to 0838abb Compare January 15, 2024 02:19
@thiagoftsm thiagoftsm marked this pull request as draft January 17, 2024 12:35
@thiagoftsm thiagoftsm force-pushed the ebpf_cgroup_update branch 3 times, most recently from 7f97834 to bae7f48 Compare February 8, 2024 18:37
@thiagoftsm thiagoftsm force-pushed the ebpf_cgroup_update branch 2 times, most recently from 29c20a6 to d036153 Compare February 25, 2024 13:29
@thiagoftsm thiagoftsm marked this pull request as ready for review February 25, 2024 13:29
@thiagoftsm thiagoftsm force-pushed the ebpf_cgroup_update branch 3 times, most recently from e1a572a to e896d0d Compare March 1, 2024 18:39
@thiagoftsm thiagoftsm force-pushed the ebpf_cgroup_update branch from e896d0d to 74e9727 Compare March 5, 2024 00:46
@thiagoftsm thiagoftsm requested a review from stelfrag March 5, 2024 03:05

ebpf_cgroup_target_t *w;
for (w = ebpf_cgroup_pids; w; w = w->next) {
if (unlikely(!w->systemd || (w->systemd && w->flags & NETDATA_EBPF_SERVICES_HAS_CACHESTAT_CHART)))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if (unlikely(!w->systemd || (w->systemd && w->flags & NETDATA_EBPF_SERVICES_HAS_CACHESTAT_CHART)))
if (unlikely(!w->systemd || (w->flags & NETDATA_EBPF_SERVICES_HAS_CACHESTAT_CHART)))

@thiagoftsm thiagoftsm force-pushed the ebpf_cgroup_update branch from 4dc0578 to 19f956b Compare March 5, 2024 10:19
@thiagoftsm thiagoftsm merged commit 8e446dc into netdata:master Mar 7, 2024
@thiagoftsm thiagoftsm deleted the ebpf_cgroup_update branch March 7, 2024 11:07
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 collectors/ebpf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants