Delete `Prometheus` static target file.

This commit is contained in:
Kazuhiro MUSASHI 2020-09-26 17:02:51 +09:00
parent 81cfec10d9
commit 9a5d2d0178
2 changed files with 1 additions and 10 deletions

View File

@ -1,2 +0,0 @@
- targets:
- localhost:9100

View File

@ -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'