From 85b1552114bd1cecf242caffcd4015500675bf9e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 24 Jul 2022 22:37:27 +0100 Subject: [PATCH] Allow prometheus collectors write access to /var/log --- cookbooks/prometheus/resources/collector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/prometheus/resources/collector.rb b/cookbooks/prometheus/resources/collector.rb index aa02f9d34..e82984b14 100644 --- a/cookbooks/prometheus/resources/collector.rb +++ b/cookbooks/prometheus/resources/collector.rb @@ -38,7 +38,7 @@ action :create do private_tmp true protect_system "strict" protect_home true - read_write_paths ["/var/lib/prometheus/node-exporter", "/var/lock"] + read_write_paths ["/var/lib/prometheus/node-exporter", "/var/lock", "/var/log"] no_new_privileges true end -- 2.45.1