As of PostgreSQL 10, there are [built-in roles](https://www.postgresql.org/docs/10/default-roles.html) that give access to extra statistics without needing to be superuser. The documentation should suggest using creating an unprivileged user and granting the `pg_monitor` role to it.