postgresql_user "prometheus" do
cluster database_cluster
- createrole true
+ superuser true
end
postgresql_database "promscale" do
owner "prometheus"
end
-postgresql_extension "timescaledb" do
- cluster database_cluster
- database "promscale"
-end
-
directory "/opt/promscale" do
owner "root"
group "root"
subscribes :restart, "systemd_service[promscale]"
end
-postgresql_extension "promscale" do
- cluster database_cluster
- database "promscale"
- notifies :restart, "service[promscale]"
-end
-
systemd_service "promscale-maintenance" do
description "Promscale Maintenace"
type "simple"