]> git.openstreetmap.org Git - chef.git/commitdiff
vectortile: track osm2pgsql db age
authorPaul Norman <penorman@mac.com>
Mon, 25 Nov 2024 05:36:47 +0000 (21:36 -0800)
committerGrant <github@firefishy.com>
Mon, 25 Nov 2024 06:26:26 +0000 (07:26 +0100)
cookbooks/vectortile/recipes/default.rb

index d57cee6a357a971dfdd8904a61e5eb789549cbd2..99211975ead7a5d4de1fb7dae9db2a5b90a74b77 100644 (file)
@@ -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