Deploy `rsyslog` config for `node_exporter`.
This commit is contained in:
parent
5bcd6e57bd
commit
7a0b2938be
|
@ -0,0 +1,7 @@
|
||||||
|
# Log kernel generated digdag log messages to file
|
||||||
|
:syslogtag,contains,"node_exporter" /var/log/node_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
|
|
@ -15,6 +15,19 @@ service 'node_exporter' do
|
||||||
action [ :enable, :start]
|
action [ :enable, :start]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Deploy `rsyslog` config for `node_exporter`:
|
||||||
|
remote_file '/etc/rsyslog.d/30-node_exporter.conf' do
|
||||||
|
owner 'root'
|
||||||
|
group 'root'
|
||||||
|
mode '644'
|
||||||
|
|
||||||
|
notifies :restart, 'service[rsyslog]'
|
||||||
|
end
|
||||||
|
|
||||||
|
service 'rsyslog' do
|
||||||
|
action :nothing
|
||||||
|
end
|
||||||
|
|
||||||
# Deploy `consul` config for `node_exporter`:
|
# Deploy `consul` config for `node_exporter`:
|
||||||
remote_file '/etc/consul.d/service-node_exporter.json' do
|
remote_file '/etc/consul.d/service-node_exporter.json' do
|
||||||
owner 'consul'
|
owner 'consul'
|
||||||
|
|
Loading…
Reference in New Issue