prometheus-community / prometheus-community/postgres_exporter
pg_stat_statements exists but postgres-exporter complains that it doesn't
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.6k
- Forks
- 835
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 10
Description
Can anyone suggest what is the issue?
root user was given superuser rights on postgres db, I ran create extension pg_stat_statements;
extension was created and checking with \dx i can see it is there in public schema. Then superuser rights were removed from root user. I have installed postgres exporter (using root user in values.yaml), in logs of the pod I can see an error that no pg_stat_statements extension exists.
I see that root has right for using public schema, also on another DB this method worked. I am a bit confused here. Any help would be appreciated!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with values.yaml and the pod logs, then compare the PostgreSQL database and connection used by the exporter with the database where pg_stat_statements was created. Done means the cause of the missing-extension report is reproducible and the exporter can detect the extension in the target database, or the configuration limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, prometheus
- Domain
- databases, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100