Merge branch 'delete-prometheus-target-static-file' of kazu634/itamae into master

This commit is contained in:
Kazuhiro MUSASHI 2020-09-26 17:05:29 +09:00 committed by Gitea
commit 3180a21533
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/`: # 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 directory d do
owner 'root' owner 'root'
group 'root' group 'root'
@ -14,13 +14,6 @@ remote_file '/etc/prometheus.d/prometheus.yml' do
mode '644' mode '644'
end 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`: # Deploy `supervisor` configuration for `prometheus`:
remote_file '/etc/supervisor/conf.d/prometheus.conf' do remote_file '/etc/supervisor/conf.d/prometheus.conf' do
owner 'root' owner 'root'