X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/74471499e60ed3fd72356eafd63ebc8118e138d7..d3d97882fa4b21d3d896f4362cc9cdf337981824:/cookbooks/db/recipes/master.rb diff --git a/cookbooks/db/recipes/master.rb b/cookbooks/db/recipes/master.rb index 636cd60dc..eafc7db13 100644 --- a/cookbooks/db/recipes/master.rb +++ b/cookbooks/db/recipes/master.rb @@ -140,6 +140,10 @@ PLANETDIFF_PERMISSIONS = { "ways" => :select }.freeze +PROMETHEUS_PERMISSIONS = { + "delayed_jobs" => :select +}.freeze + %w[ acls active_storage_attachments @@ -205,6 +209,7 @@ PLANETDIFF_PERMISSIONS = { "cgimap" => CGIMAP_PERMISSIONS[table], "planetdump" => PLANETDUMP_PERMISSIONS[table], "planetdiff" => PLANETDIFF_PERMISSIONS[table], + "prometheus" => PROMETHEUS_PERMISSIONS[table], "backup" => [:select] end end @@ -300,3 +305,10 @@ end service "yearly-reindex.timer" do action [:enable, :start] end + +template "/etc/prometheus/exporters/sql_rails.collector.yml" do + source "sql_rails.yml.erb" + owner "root" + group "root" + mode "0644" +end