Deploy the alert settings.
This commit is contained in:
parent
568bcf0538
commit
c969038bdc
|
@ -17,13 +17,15 @@ remote_file '/etc/prometheus.d/alertmanager.yml' do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deploy alert setting file:
|
# Deploy alert setting file:
|
||||||
remote_file '/etc/prometheus.d/alerts/resource.yml' do
|
%w(node_exporter prometheus).each do |conf|
|
||||||
|
remote_file "/etc/prometheus.d/alerts/#{conf}.yml" do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :restart, 'service[supervisor]'
|
notifies :restart, 'service[supervisor]'
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Restart the `supervisor`:
|
# Restart the `supervisor`:
|
||||||
service 'supervisor' do
|
service 'supervisor' do
|
||||||
|
|
Loading…
Reference in New Issue