From 0c4c2dfa07939b515d41f8128c0b937ec6823cd1 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Sun, 24 Nov 2024 21:36:47 -0800 Subject: [PATCH] vectortile: track osm2pgsql db age --- cookbooks/vectortile/recipes/default.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cookbooks/vectortile/recipes/default.rb b/cookbooks/vectortile/recipes/default.rb index d57cee6a3..99211975e 100644 --- a/cookbooks/vectortile/recipes/default.rb +++ b/cookbooks/vectortile/recipes/default.rb @@ -280,3 +280,17 @@ else action [:stop, :disable] end end + +package %w[ + ruby-pg + ruby-webrick +] + +prometheus_exporter "osm2pgsql" do + port 10027 + user "tileupdate" + restrict_address_families "AF_UNIX" + options [ + "--database-name=spirit" + ] +end -- 2.39.5