X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1dbda5d6ff8491bc544e44659f369388b77d8645..b7c12630cb9de017d76fe60ff296534d6d061399:/cookbooks/prometheus/recipes/server.rb?ds=sidebyside diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index d16d47fda..4b9058c8e 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -363,7 +363,7 @@ apache_module "proxy_http" apache_module "proxy_wstunnel" ssl_certificate "prometheus.openstreetmap.org" do - domains ["prometheus.openstreetmap.org", "prometheus.osm.org"] + domains ["prometheus.openstreetmap.org", "prometheus.osm.org", "munin.openstreetmap.org", "munin.osm.org"] notifies :reload, "service[apache2]" end @@ -409,7 +409,10 @@ systemd_service "prometheus-backup-data" do description "Backup prometheus data to S3" user "prometheus" exec_start "/usr/local/bin/prometheus-backup-data" - read_write_paths "/var/lib/prometheus/metrics2/snapshots" + read_write_paths %w[ + /var/lib/prometheus/.aws + /var/lib/prometheus/metrics2/snapshots + ] sandbox :enable_network => true end @@ -417,3 +420,7 @@ systemd_timer "prometheus-backup-data" do description "Backup prometheus data to S3" on_calendar "03:11" end + +service "prometheus-backup-data.timer" do + action [:enable, :start] +end