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

n_live_tup and n_dead_tup are always 0 for "PostgreSQL Database estimates live/dead rows|" #151

Open
mcindea opened this issue Sep 16, 2019 · 0 comments

Comments

@mcindea
Copy link

mcindea commented Sep 16, 2019

Hello,

I noticed in the Zabbix template pg.table.n_live_tup[{$PG_CONN},{#DATABASE}] and pg.table.n_dead_tup[{$PG_CONN},{#DATABASE}] and I tried using them to calculate the garbage ratio / DB.

The problem is that they are always returned 0. This works fine for the table ones, but after a bit of digging the query in the docs will never work, because relname will never equal {#DATABASE}.

Is there any other way to get the garbage ratio? I do have some other custom queries which I use and involve a join between pg_class and pg_stat_all_tables on oid=relid. But I preferred to use this module instead.

Thank you very much for your work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant