X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/926b50ddad5d1701e0b22690588e632585d60ad8..2b4843ace5d011913f8e72df157ffd127e9da4a9:/cookbooks/postgresql/recipes/default.rb?ds=sidebyside 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