Deploy `/etc/rsyslog.d/30-prometheus.conf`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-11 21:33:24 +09:00
parent 1bf6c47e99
commit 26ff24d784
1 changed files with 13 additions and 0 deletions

View File

@ -31,6 +31,19 @@ service 'prometheus' do
action [:enable, :start]
end
# Depoy `rsyslog` configuration for `prometheus`:
remote_file '/etc/rsyslog.d/30-prometheus.conf' do
owner 'root'
group 'root'
mode '644'
notifies :restart, 'service[rsyslog]'
end
service 'rsyslog' do
action :nothing
end
# Depoy `consul` service configuration for `prometheus`:
remote_file '/etc/consul.d/service-prometheus.json' do
owner 'consul'