X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f08ecb186ba2c0763ad2b58c0c9b95424a54cb3b..586d197702be461402f6837edf1ef6c612c1f0a7:/cookbooks/postgresql/recipes/default.rb diff --git a/cookbooks/postgresql/recipes/default.rb b/cookbooks/postgresql/recipes/default.rb index 121b2e3c2..a57e1b348 100644 --- a/cookbooks/postgresql/recipes/default.rb +++ b/cookbooks/postgresql/recipes/default.rb @@ -174,12 +174,13 @@ end prometheus_exporter "postgres" do port 9187 - scrape_interval "30s" - scrape_timeout "30s" + scrape_interval "1m" + scrape_timeout "1m" user "postgres" options "--extend.query-path=/etc/prometheus/exporters/postgres_queries.yml" environment "DATA_SOURCE_URI" => uris.sort.uniq.first, "PG_EXPORTER_AUTO_DISCOVER_DATABASES" => "true", "PG_EXPORTER_EXCLUDE_DATABASES" => "postgres,template0,template1" + restrict_address_families "AF_UNIX" subscribes :restart, "template[/etc/prometheus/exporters/postgres_queries.yml]" end