# limitations under the License.
#
-include_recipe "apt"
+include_recipe "apt::postgresql"
include_recipe "munin"
include_recipe "prometheus"
prometheus_exporter "postgres" do
port 9187
+ 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,