Closed jneo8 closed 9 months ago
(by peppepetra) Related bug https://bugs.launchpad.net/snapd/+bug/1954935
(by peppepetra) Given that output doesn't change if ptrace is denied or allowed, I propose to fix that with a charm hook that needs to:
Update local/usr.sbin.libvirtd apparmor profile adding: deny ptrace (read) peer=snap.prometheus-libvirt-exporter.daemon,
Reload libvirtd apparmor profile: apparmor_parser -r /etc/apparmor.d/usr.sbin.libvirtd
Ref. https://wiki.debian.org/AppArmor/HowToUse#Edit_AppArmor_profiles
the exporter uses the libvirt interface. When it is connected even if it is able to collect correctly all the metrics the kernel keeps logging:
Imported from Launchpad using lp2gh.
date created: 2021-12-16T12:24:08Z
owner: peppepetra
assignee: None
the launchpad url