From: Tom Hughes Date: Sun, 24 Sep 2023 09:11:11 +0000 (+0100) Subject: Enable some addition postgres collectors X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/5456576609cbee101e13b251d2dfe9c850445da3 Enable some addition postgres collectors --- 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 @@ clusters.each do |name, details| 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