public-cof: improve monitoring of postgresql

This commit is contained in:
Raito Bezarius 2022-03-08 19:47:32 +01:00
parent 4355c00f8e
commit bacdad33d3

View file

@ -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;
'';