PGObserver icon indicating copy to clipboard operation
PGObserver copied to clipboard

pg_stat_statements not working

Open ketys opened this issue 8 years ago • 7 comments

Hi, I've got a problem with logging pg_stat_statements ... I've got the module enabled in database (view pg_stat_statements exists in Schemas->public->Views) and there's of course some data. But when I try to access it on frontend, it doesn't show any statistics ... Also host selection is empty (see the picture).

screen shot 2017-04-28 at 11 28 52

Error log writes only this: ERROR: function zz_utils.get_load_average() does not exist, but I think it's not related to my problem. Any help would be appreciated :)

ketys avatar Apr 28 '17 09:04 ketys

Ah, maybe I got it ... statStatementsInterval should not be 0? :)

ketys avatar Apr 28 '17 09:04 ketys

@slitsche @a1exsh Can you respond to @ketys?

Thanks for your patience, @ketys. Any updates since your last post?

lasomethingsomething avatar Jun 06 '17 16:06 lasomethingsomething

Yes, I solved it by setting statStatementsInterval to non-zero number :) Thanks (maybe consider to mention this in documentation :))

ketys avatar Jun 06 '17 16:06 ketys

@ketys would you mind making a PR to add it in the docs? we'll merge it then. :)

lasomethingsomething avatar Jun 06 '17 16:06 lasomethingsomething

Hi, I'm also having a problem with this. Where is the statStatementsInterval setting you mention?

dholleran1 avatar Aug 30 '17 15:08 dholleran1

@dholleran1 please go to /hosts URI, there you should see a Settings column which defines a JSON object with settings for gathering data for the hosts. Add "statStatementsInterval": 600, for example if not already there.

a1exsh avatar Aug 30 '17 15:08 a1exsh

Yeah I found it. Thanks!

dholleran1 avatar Aug 30 '17 15:08 dholleran1