X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5249011cc0b8e52dc8b7c2f2d655404f738c7ebe..2c9527844e884db26c83395ac4068d76507c7999:/cookbooks/apache/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/apache/recipes/default.rb b/cookbooks/apache/recipes/default.rb index f47d500b5..aee5dfcc8 100644 --- a/cookbooks/apache/recipes/default.rb +++ b/cookbooks/apache/recipes/default.rb @@ -78,6 +78,11 @@ apache_module "status" do variables :hosts => admins["hosts"] end +apache_module "evasive" do + conf "evasive.conf.erb" + only_if { node[:apache][:evasive] } +end + apache_module "brotli" do conf "brotli.conf.erb" end @@ -97,6 +102,13 @@ munin_plugin "apache_accesses" munin_plugin "apache_processes" munin_plugin "apache_volume" +template "/var/lib/prometheus/node-exporter/apache.prom" do + source "apache.prom.erb" + owner "root" + group "root" + mode "644" +end + prometheus_exporter "apache" do port 9117 options "--scrape_uri=http://localhost/server-status?auto"