From: Tom Hughes Date: Sun, 4 Oct 2020 20:02:25 +0000 (+0100) Subject: Exclude postgres and template databases from prometheus X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/2c47ce1f262afebbb0ace3b7d0cd0c19f5ce4739 Exclude postgres and template databases from prometheus --- diff --git a/cookbooks/postgresql/recipes/default.rb b/cookbooks/postgresql/recipes/default.rb index 0e29b2042..4d7aec10e 100644 --- a/cookbooks/postgresql/recipes/default.rb +++ b/cookbooks/postgresql/recipes/default.rb @@ -161,5 +161,6 @@ end prometheus_exporter "postgres" do port 9187 user "postgres" - environment "DATA_SOURCE_NAME" => "user=postgres host=/run/postgresql #{ports.join(',')}" + environment "DATA_SOURCE_NAME" => "user=postgres host=/run/postgresql #{ports.join(',')}", + "PG_EXPORTER_EXCLUDE_DATABASES" => "postgres,template0,template1" end