Skip to content

Commit

Permalink
Enable some addition postgres collectors
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Sep 24, 2023
1 parent 926b50d commit 5456576
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cookbooks/postgresql/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5456576

Please sign in to comment.