Skip to content

Commit

Permalink
Added permissions for the custom query file
Browse files Browse the repository at this point in the history
Adding an entry for permissions needed by the last query in the custom query file. The last query allows for query-level metrics and is critical for some customers.
  • Loading branch information
lchapman4 committed Mar 23, 2022
1 parent 54dea8a commit b7569e5
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,20 @@ 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 Postgres custom query config file, the PostgreSQL role used by the integration (`new_relic`) also needs to be added to the (`pg_read_all_stats`) role. This is due to the user leveraging the (`pg_stat_statements`) extension. This extension may require additional steps mentioned in the (`Additional notes`) section below.

```
GRANT pg_read_all_stats TO new_relic;
```

Additional notes:

- **Enabling the Extension** 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 b7569e5

Please sign in to comment.