@cryptotaxi247 / netdata-1 / commits / 9798a2b71

fix(cgroup.plugin): handle qemu-1- prefix when extracting virsh domain (#13866)

Ilya Mashchenko committed Oct 23, 2022 at 19:36 UTC 9798a2b71e880a73b5b95d62d2e0c63dbc649a0e
1 file changed +1
collectors/cgroups.plugin/cgroup-network-helper.sh
+1
@@ -150,6 +150,7 @@ virsh_cgroup_to_domain_name() {
150
151 # extract for the cgroup path
152 sed -n -e "s|.*/machine-qemu\\\\x2d[0-9]\+\\\\x2d\(.*\)\.scope$|\1|p" \
153 + -e "s|.*/machine/qemu-[0-9]\+-\(.*\)\.libvirt-qemu$|\1|p" \
154 -e "s|.*/machine/\(.*\)\.libvirt-qemu$|\1|p" \
155 <<EOF
156 ${c}