Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

pg_stat_statements not working #104

Open
ketys opened this issue Apr 28, 2017 · 7 comments
Open

pg_stat_statements not working #104

ketys opened this issue Apr 28, 2017 · 7 comments

Comments

@ketys
Copy link

ketys commented Apr 28, 2017

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
Copy link
Author

ketys commented Apr 28, 2017

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

@lasomethingsomething
Copy link
Contributor

lasomethingsomething commented Jun 6, 2017

@slitsche @a1exsh Can you respond to @ketys?

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

@ketys
Copy link
Author

ketys commented Jun 6, 2017

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

@lasomethingsomething
Copy link
Contributor

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

@dholleran1
Copy link

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

@a1exsh
Copy link
Member

a1exsh commented Aug 30, 2017

@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.

@dholleran1
Copy link

Yeah I found it. Thanks!

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

No branches or pull requests

4 participants