fix(proc/net/dev): exclude Proxmox bridge interfaces (#12789)
Ilya Mashchenko committed
May 2, 2022 at 10:59 UTC
ee2d762f81d478557c2fcf879bbaaa86686522fb
2 files changed
+2
-2
collectors/cgroups.plugin/cgroup-network-helper.sh
+1
-1
@@ -219,7 +219,7 @@ netnsid_find_all_interfaces_for_cgroup() {
219
local c="${1}" # the cgroup path
220
221
if [ -f "${c}/cgroup.procs" ]; then
222
- netnsid_find_all_interfaces_for_pid "$(head -n 1 "${c}/cgroup.procs" 2 >/dev/null)"
222
+ netnsid_find_all_interfaces_for_pid "$(head -n 1 "${c}/cgroup.procs" 2>/dev/null)"
223
else
224
debug "Cannot find file '${c}/cgroup.procs', not searching for netnsid interfaces."
225
fi
collectors/proc.plugin/proc_net_dev.c
+1
-1
@@ -655,7 +655,7 @@ int do_proc_net_dev(int update_every, usec_t dt) {
655
do_carrier = config_get_boolean_ondemand(CONFIG_SECTION_PLUGIN_PROC_NETDEV, "carrier for all interfaces", CONFIG_BOOLEAN_AUTO);
656
do_mtu = config_get_boolean_ondemand(CONFIG_SECTION_PLUGIN_PROC_NETDEV, "mtu for all interfaces", CONFIG_BOOLEAN_AUTO);
657
658
- disabled_list = simple_pattern_create(config_get(CONFIG_SECTION_PLUGIN_PROC_NETDEV, "disable by default interfaces matching", "lo fireqos* *-ifb"), NULL, SIMPLE_PATTERN_EXACT);
658
+ disabled_list = simple_pattern_create(config_get(CONFIG_SECTION_PLUGIN_PROC_NETDEV, "disable by default interfaces matching", "lo fireqos* *-ifb fwpr* fwbr* fwln*"), NULL, SIMPLE_PATTERN_EXACT);
659
}
660
661
if(unlikely(!ff)) {