prometheus-community / prometheus-community/postgres_exporter

pg_stat_statements exists but postgres-exporter complains that it doesn't

Open
#450 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.