prometheus-community / prometheus-community/postgres_exporter
pg_stat_user_table doesn't exist in pg-exporter
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.6k
- Forks
- 835
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 10
Description
Hi Team,
We are using postgres 13 version, grafana - grafana/grafana:6.7.2 & the Prometheus - prom/prometheus:v2.17.0, pg-exporter - wrouesnel/postgres_exporter:v0.8.0. It's running in a docker platform.
Recently I tried to deploy the https://promcat.io/apps/postgresql dashboard
- Database Golden Signals
- Instance Health
seems like the 2 panels ( Heap Only Tuple Updates Rate & Index vs Sequential Scans ) are not showing data in panels, when i checked with Prometheus, i can able to verify the Prometheus connected with the pg-exporter and the pg-exported metrics file have pg_stat_user_tables in nested query in pg_stat_statements_blk_read_time like below
pg_stat_statements_blk_read_time{datname="postgres",query="SELECT current_database() datname, schemaname, relname, seq_scan, seq_tup_read, idx_scan, idx_tup_fetch, n_tup_ins, n_tup_upd, n_tup_del, n_tup_hot_upd, n_live_tup, n_dead_tup, n_mod_since_analyze, COALESCE(last_vacuum, $1), COALESCE(last_vacuum, $2) as last_vacuum, COALESCE(last_autovacuum, $3) as last_autovacuum, COALESCE(last_analyze, $4) as last_analyze, COALESCE(last_autoanalyze, $5) as last_autoanalyze,
vacuum_count, autovacuum_count, analyze_count, autoanalyze_count FROM pg_stat_user_tables",queryid="-1171651946716037767",server="pgs:5432",user="postgres_exporter"} 0
Not sure why the grafana panels are not showing date for those 2 panels.
Any thoughts..? OR any mis-configured here..?
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 by comparing the Grafana panel queries with the metrics exposed by postgres_exporter v0.8.0 and the PostgreSQL 13 views mentioned in the report. Check the Database Golden Signals panels for Heap Only Tuple Updates Rate and Index vs Sequential Scans, then document whether the exporter exposes the required metric names and what configuration or query change is needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, grafana, 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