diff --git a/cookbooks/prometheus/default.rb b/cookbooks/prometheus/default.rb index 61f6819..1859b1f 100644 --- a/cookbooks/prometheus/default.rb +++ b/cookbooks/prometheus/default.rb @@ -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'