Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Content Bug] Edit page "Export metrics to Prometheus" #3562

Open
jkoria opened this issue Nov 7, 2024 · 2 comments
Open

[Content Bug] Edit page "Export metrics to Prometheus" #3562

jkoria opened this issue Nov 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@jkoria
Copy link

jkoria commented Nov 7, 2024

Use this template for reporting bugs in the docs.

Describe the bug

We need to grant the pg_monitor role to the monitoring user to avoid the error while selecting on pg_ls_waldir():

ERROR: permission denied for function pg_ls_waldir

What should the docs say?

c. Grant pg_monitor to the monitoring user:

grant pg_monitor to monitoring;

Page affected

Export metrics to Prometheus

Contributing to documentation

We welcome documentation contributions!

  • For information about how to propose a change, see the contributing guide in our GitHub repository.
  • For information on style and word usage, see the style guide
@jkoria jkoria added bug Something isn't working documentation Improvements or additions to documentation labels Nov 7, 2024
@atovpeko atovpeko self-assigned this Nov 22, 2024
@atovpeko
Copy link
Contributor

Hi @jkoria,
pg_read_all_stats should be sufficient according to the Postgres exporter documentation:

To be able to collect metrics from pg_stat* views as non-superuser in PostgreSQL server versions >= 10 you can grant the pg_monitor or pg_read_all_stats built-in roles to the user.

Are you getting some sort of error when not granting pg_monitor specifically?

@jkoria
Copy link
Author

jkoria commented Dec 17, 2024

Hi @atovpeko - as I mentioned:

We need to grant the pg_monitor role to the monitoring user to avoid the error while selecting on pg_ls_waldir():
ERROR: permission denied for function pg_ls_waldir

We have a customer who reported this error, and it was fixed by:

grant pg_monitor to monitoring;

Thank!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants