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
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
description "Backup prometheus data to S3"
on_calendar "03:11"
end
+
+service "prometheus-backup-data.timer" do
+ action [:enable, :start]
+end