# This AppArmor profile is part of the prometheus-pgbouncer_exporter package
# Georg Pfuetzenreuter <mail+apparmor@georg-pfuetzenreuter.net>

abi <abi/3.0>,

include <tunables/global>

/usr/bin/pgbouncer_exporter {
  include <abstractions/base>
  include <abstractions/nameservice>

  network inet stream,
  network inet6 stream,

  /usr/bin/pgbouncer_exporter mr,

  include if exists <local/prometheus-pgbouncer_exporter>
}
