From b7c12630cb9de017d76fe60ff296534d6d061399 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Fri, 29 Nov 2024 13:39:35 -0800 Subject: [PATCH 1/1] 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. --- cookbooks/tile/recipes/default.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- 2.39.5