]> git.openstreetmap.org Git - chef.git/commitdiff
tile: use osm2pgsql-replication promethus
authorPaul Norman <penorman@mac.com>
Fri, 29 Nov 2024 21:39:35 +0000 (13:39 -0800)
committerPaul Norman <penorman@mac.com>
Fri, 29 Nov 2024 21:39:35 +0000 (13:39 -0800)
The logic that generates the renderd age metric can be removed
when there is enough data for the new metric in Prometheus.

This logic exists in the prometheus exporters package.

cookbooks/tile/recipes/default.rb

index ddc7e490e4bf929cccfcd59fcc203cb2fc295b7a..a41a9f361abc867094164f246ecc968a30287810 100644 (file)
@@ -668,7 +668,19 @@ tile_directories.each do |directory|
   end
 end
 
-package "ruby-webrick"
+package %w[
+  ruby-pg
+  ruby-webrick
+]
+
+prometheus_exporter "osm2pgsql" do
+  port 10027
+  user "tileupdate"
+  restrict_address_families "AF_UNIX"
+  options [
+    "--database-name=gis"
+  ]
+end
 
 prometheus_exporter "modtile" do
   port 9494