From 9dfa18f4d915837857f34b98cfb2de5f468ea433 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 13 Jul 2021 14:16:57 +0100 Subject: [PATCH 1/1] Use URI for promscale database connection --- cookbooks/prometheus/recipes/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index f25717e4d..1a3fb7db0 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -101,7 +101,7 @@ systemd_service "promscale" do description "Promscale Connector" type "simple" user "prometheus" - exec_start "/opt/promscale/bin/promscale --db-host /run/postgresql --db-port 5432 --db-user prometheus --db-name promscale --db-connections-max 400" + exec_start "/opt/promscale/bin/promscale --db-uri postgresql:///promscale?host=/run/postgresql&port=5432 --db-connections-max 400" # exec_start lazy { "/opt/promscale/bin/promscale --db-host /run/postgresql --db-port #{node[:postgresql][:clusters][database_cluster][:port]} --db-user prometheus --db-name promscale --db-max-connections 400" } limit_nofile 16384 private_tmp true -- 2.39.5