From 7c76896aa87d6aba2619a0a25250276cc4df8909 Mon Sep 17 00:00:00 2001 From: "juris.greitans" Date: Mon, 29 Nov 2021 13:13:14 +0200 Subject: [PATCH] Fix issues mentioned in review. Add link to PostgreSQL documentation about pre-defined roles. Signed-off-by: juris.greitans --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e7c92cb..69b1568f 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,7 @@ If you want to include only subset of databases, you can use option `--include-d ### Running as non-superuser To be able to collect metrics from `pg_stat*` views as non-superuser in PostgreSQL -server versions >= 10 you can grant pg_monitor built-in role to the user. If +server versions >= 10 you can grant the `pg_monitor` or `pg_read_all_stats` [built-in roles](https://www.postgresql.org/docs/current/predefined-roles.html) to the user. If you need to monitor older PostgreSQL servers, you will have to create functions and views as a superuser, and assign permissions separately to those.