From 5456576609cbee101e13b251d2dfe9c850445da3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 24 Sep 2023 10:11:11 +0100 Subject: [PATCH] Enable some addition postgres collectors --- cookbooks/postgresql/recipes/default.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cookbooks/postgresql/recipes/default.rb b/cookbooks/postgresql/recipes/default.rb index 7b5269b07..9f713b60e 100644 --- a/cookbooks/postgresql/recipes/default.rb +++ b/cookbooks/postgresql/recipes/default.rb @@ -128,7 +128,14 @@ scrape_interval "1m" scrape_timeout "1m" user "postgres" - options "--collector.process_idle" + options %w[ + --collector.database_wraparound + --collector.long_running_transactions + --collector.process_idle + --collector.stat_activity_autovacuum + --collector.stat_wal_receiver + --collector.statio_user_indexes + ] environment "DATA_SOURCE_NAME" => "postgres:///#{prometheus_database}?host=/run/postgresql&port=#{details[:port]}" restrict_address_families "AF_UNIX" remove_ipc false