Skip to content

Commit

Permalink
fix(cgroups.plugin): adjust kubepods patterns to filter pods when usi…
Browse files Browse the repository at this point in the history
…ng Kind cluster (netdata#13324)
  • Loading branch information
ilyam8 authored Jul 7, 2022
1 parent 2030b89 commit 473f449
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions collectors/cgroups.plugin/sys_fs_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,17 @@ void read_cgroup_plugin_configuration() {
// ----------------------------------------------------------------

" /machine.slice/*.service " // #3367 systemd-nspawn
" /kubepods/pod*/* " // k8s containers
" /kubepods/*/pod*/* " // k8s containers

// ----------------------------------------------------------------

" !/kubepods* " // all other k8s cgroups
" */kubepods/pod*/* " // k8s containers
" */kubepods/*/pod*/* " // k8s containers
" */*-kubepods-pod*/* " // k8s containers
" */*-kubepods-*-pod*/* " // k8s containers
" !*kubepods* !*kubelet* " // all other k8s cgroups

// ----------------------------------------------------------------

" !*/vcpu* " // libvirtd adds these sub-cgroups
" !*/emulator " // libvirtd adds these sub-cgroups
" !*.mount "
Expand Down Expand Up @@ -529,9 +534,11 @@ void read_cgroup_plugin_configuration() {
" *docker* "
" *lxc* "
" *qemu* "
" /kubepods/pod*/* " // k8s containers
" /kubepods/*/pod*/* " // k8s containers
" !/kubepods* " // all other k8s cgroups
" */kubepods/pod*/* " // k8s containers
" */kubepods/*/pod*/* " // k8s containers
" */*-kubepods-pod*/* " // k8s containers
" */*-kubepods-*-pod*/* " // k8s containers
" !*kubepods* !*kubelet* " // all other k8s cgroups
" *.libvirt-qemu " // #3010
" * "
), NULL, SIMPLE_PATTERN_EXACT);
Expand Down

0 comments on commit 473f449

Please sign in to comment.