From 26ff24d7841ee05953588ddf26e0e8908591f5c0 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 11 Feb 2023 21:33:24 +0900 Subject: [PATCH] Deploy `/etc/rsyslog.d/30-prometheus.conf`. --- cookbooks/prometheus/prometheus_setup.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cookbooks/prometheus/prometheus_setup.rb b/cookbooks/prometheus/prometheus_setup.rb index 3eb79b7..bda685c 100644 --- a/cookbooks/prometheus/prometheus_setup.rb +++ b/cookbooks/prometheus/prometheus_setup.rb @@ -31,6 +31,19 @@ service 'prometheus' do action [:enable, :start] end +# Depoy `rsyslog` configuration for `prometheus`: +remote_file '/etc/rsyslog.d/30-prometheus.conf' do + owner 'root' + group 'root' + mode '644' + + notifies :restart, 'service[rsyslog]' +end + +service 'rsyslog' do + action :nothing +end + # Depoy `consul` service configuration for `prometheus`: remote_file '/etc/consul.d/service-prometheus.json' do owner 'consul'