diff --git a/cookbooks/prometheus/files/etc/prometheus.d/targets/targets.yml b/cookbooks/prometheus/files/etc/prometheus.d/targets/targets.yml deleted file mode 100644 index 2016979..0000000 --- a/cookbooks/prometheus/files/etc/prometheus.d/targets/targets.yml +++ /dev/null @@ -1,2 +0,0 @@ -- targets: - - localhost:9100 diff --git a/cookbooks/prometheus/prometheus_setup.rb b/cookbooks/prometheus/prometheus_setup.rb index 2eb63c3..c99f40a 100644 --- a/cookbooks/prometheus/prometheus_setup.rb +++ b/cookbooks/prometheus/prometheus_setup.rb @@ -1,5 +1,5 @@ # Create `/etc/prometheus.d/`: -%w(/etc/prometheus.d /etc/prometheus.d/targets/).each do |d| +%w(/etc/prometheus.d).each do |d| directory d do owner 'root' group 'root' @@ -14,13 +14,6 @@ remote_file '/etc/prometheus.d/prometheus.yml' do mode '644' end -# Deploy temporary file for `prometheus` targets: -remote_file '/etc/prometheus.d/targets/targets.yml' do - owner 'root' - group 'root' - mode '644' -end - # Deploy `supervisor` configuration for `prometheus`: remote_file '/etc/supervisor/conf.d/prometheus.conf' do owner 'root'