You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start postgres_exporter in docker as following instruction
What did you expect to see?
Everything should be ok, and not error log
What did you see instead? Under which circumstances?
docker logs -f postgres_exporter found error log
time=2024-12-09T03:46:47.575Z level=ERROR source=collector.go:201 msg="collector failed" name=wal duration_seconds=0.008162135 err="pq: permission denied for function pg_ls_waldir"
Create a monitoring account:
CREATEUSERpostgres_exporter WITH PASSWORD 'secret';
ALTERUSER postgres_exporter SET SEARCH_PATH TO postgres_exporter,pg_catalog;
-- If deploying as non-superuser (for example in AWS RDS), uncomment the GRANT-- line below and replace <MASTER_USER> with your root user.-- GRANT postgres_exporter TO <MASTER_USER>;GRANT CONNECT ON DATABASE postgres TO postgres_exporter;
kakuiho
changed the title
Collector failed: pq: permission denied for function pg_ls_waldir
Collector failed: pq: permission denied for function pg_ls_waldir on PG v16.6
Dec 9, 2024
What did you do?
Start postgres_exporter in docker as following instruction
What did you expect to see?
Everything should be ok, and not error log
What did you see instead? Under which circumstances?
docker logs -f postgres_exporter
found error logCreate a monitoring account:
Environment
System information:
Linux 6.8.0-45-generic x86_64
postgres_exporter version:
PostgreSQL version:
16.6
Logs:
The text was updated successfully, but these errors were encountered: