Deploy `rsyslog` config for `filestat_exporter`.
This commit is contained in:
parent
9a8b53cd8f
commit
7887813153
|
@ -0,0 +1,7 @@
|
||||||
|
# Log kernel generated digdag log messages to file
|
||||||
|
:syslogtag,contains,"filestat_exporter" /var/log/filestat_exporter.log
|
||||||
|
|
||||||
|
# Uncomment the following to stop logging anything that matches the last rule.
|
||||||
|
# Doing this will stop logging kernel generated UFW log messages to the file
|
||||||
|
# normally containing kern.* messages (eg, /var/log/kern.log)
|
||||||
|
& stop
|
|
@ -18,6 +18,19 @@ service 'filestat_exporter' do
|
||||||
action [:enable, :start]
|
action [:enable, :start]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Deploy `rsyslog` config:
|
||||||
|
remote_file '/etc/rsyslog.d/30-filestat_exporter.conf' do
|
||||||
|
owner 'root'
|
||||||
|
group 'root'
|
||||||
|
mode '644'
|
||||||
|
|
||||||
|
notifies :restart, 'service[rsyslog]'
|
||||||
|
end
|
||||||
|
|
||||||
|
service 'rsyslog' do
|
||||||
|
action :nothing
|
||||||
|
end
|
||||||
|
|
||||||
# Deploy `consul` config for `filestat_exporter`:
|
# Deploy `consul` config for `filestat_exporter`:
|
||||||
remote_file '/etc/consul.d/service-filestat_exporter.json' do
|
remote_file '/etc/consul.d/service-filestat_exporter.json' do
|
||||||
owner 'consul'
|
owner 'consul'
|
||||||
|
|
Loading…
Reference in New Issue