From: Paul Norman Date: Fri, 29 Nov 2024 21:39:35 +0000 (-0800) Subject: tile: use osm2pgsql-replication promethus X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/b7c12630cb9de017d76fe60ff296534d6d061399?hp=2125253e9be65eccfab5ae41d07e28f6c32623e9 tile: use osm2pgsql-replication promethus 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. --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index ddc7e490e..a41a9f361 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -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