public-cof: improve monitoring of postgresql
This commit is contained in:
parent
4355c00f8e
commit
bacdad33d3
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@
|
|||
"python.d/postgres"
|
||||
];
|
||||
|
||||
services.postgresql.settings = {
|
||||
shared_preload_libraries = "pg_stat_statements";
|
||||
track_activity_query_size = 2048;
|
||||
"pg_stat_statements.track" = "all";
|
||||
};
|
||||
|
||||
services.postgresql.initialScript = pkgs.writeText "grant-pgmonitor-to-netdata" ''
|
||||
GRANT pg_monitor TO netdata;
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue