Skip to content

Commit 81194c9

Browse files
endofcakewrouesnel
authored andcommitted
Grant postgres_exporter role to deployer role
If the deployer role is not superuser (which is the case in AWS RDS, for example), we need to grant it access to postgres_exporter role before we can create a schema with AUTHORIZATION postgres_exporter.
1 parent 1ec400b commit 81194c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ To be able to collect metrics from pg_stat_activity and pg_stat_replication as n
8181
CREATE USER postgres_exporter PASSWORD 'password';
8282
ALTER USER postgres_exporter SET SEARCH_PATH TO postgres_exporter,pg_catalog;
8383

84+
-- If deploying as non-superuser (for example in AWS RDS)
85+
-- GRANT postgres_exporter TO :MASTER_USER;
8486
CREATE SCHEMA postgres_exporter AUTHORIZATION postgres_exporter;
8587

8688
CREATE FUNCTION postgres_exporter.f_select_pg_stat_activity()

0 commit comments

Comments
 (0)