Skip to content

Commit

Permalink
Merge pull request #6751 from lchapman4/Postgres-Custom-Query-Perms
Browse files Browse the repository at this point in the history
Added permissions for the custom query file
  • Loading branch information
bradleycamacho committed Mar 23, 2022
2 parents 006f77f + 675e2f6 commit 2608c94
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@ If you also want to obtain table and index-related metrics (for example, table s
GRANT SELECT ON ALL TABLES IN SCHEMA public TO new_relic;
```

If you also want to obtain query-level metrics from the PostgreSQL custom query config file, the PostgreSQL role used by the integration (`new_relic`) needs to be added to the (`pg_read_all_stats`) role. This is due to the user leveraging the (`pg_stat_statements`) extension.
```
GRANT pg_read_all_stats TO new_relic;
```

Enabling the `pg_stat_statements` extension may require you to manually create it from a query prompt:

```
CREATE EXTENSION pg_stat_statements;
```

### postgresql-config.yml sample files [#examples]

<CollapserGroup>
Expand Down

0 comments on commit 2608c94

Please sign in to comment.