@cryptotaxi247 / netdata-1 / commits / a3a8e24af

remove unecessary cgroup renames; #3144

Costa Tsaousis (ktsaou) committed Dec 17, 2017 at 13:48 UTC a3a8e24af1811c7da8720abb0635b82b57452cb1
1 file changed +9 -8
src/sys_fs_cgroup.c
+9 -8
@@ -187,7 +187,7 @@ void read_cgroup_plugin_configuration() {
187 " !/systemd "
188 " !/user "
189 " !/user.slice "
190 - " !/lxc/*/* " // #2161 #2649
190 + " !/lxc/*/* " // #2161 #2649
191 " * "
192 ), SIMPLE_PATTERN_EXACT);
193
@@ -199,13 +199,6 @@ void read_cgroup_plugin_configuration() {
199
200 enabled_cgroup_renames = simple_pattern_create(
201 config_get("plugin:cgroups", "run script to rename cgroups matching",
202 - " *.scope "
203 - " *docker* "
204 - " *lxc* "
205 - " *qemu* "
206 - " *.libvirt-qemu " // #3010
207 - " !*/vcpu* " // libvirtd adds these sub-cgroups
208 - " !*/emulator* " // libvirtd adds these sub-cgroups
202 " !/ "
203 " !*.mount "
204 " !*.partition "
@@ -213,6 +206,14 @@ void read_cgroup_plugin_configuration() {
206 " !*.slice "
207 " !*.swap "
208 " !*.user "
209 + " !init.scope "
210 + " !*.scope/vcpu* " // libvirtd adds these sub-cgroups
211 + " !*.scope/emulator " // libvirtd adds these sub-cgroups
212 + " *.scope "
213 + " *docker* "
214 + " *lxc* "
215 + " *qemu* "
216 + " *.libvirt-qemu " // #3010
217 " * "
218 ), SIMPLE_PATTERN_EXACT);
219