Create `/etc/prometheus_exporters.d`.

This commit is contained in:
Kazuhiro MUSASHI 2020-09-27 14:21:58 +09:00
parent b607d9f107
commit ec906dae58
1 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,15 @@ if node['prometheus']['manager']
end
end
# Create `/etc/prometheus.d/`:
%w(/etc/prometheus_exporters.d).each do |d|
directory d do
owner 'root'
group 'root'
mode '0755'
end
end
# Install the node_exporter here:
include_recipe './node_exporter_install.rb'
include_recipe './node_exporter_setup.rb'