X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..08cf52e21395d633afe7de03f255aaa0941bac1d:/cookbooks/nginx/recipes/default.rb diff --git a/cookbooks/nginx/recipes/default.rb b/cookbooks/nginx/recipes/default.rb index 20128a1cb..d215e51c8 100644 --- a/cookbooks/nginx/recipes/default.rb +++ b/cookbooks/nginx/recipes/default.rb @@ -19,6 +19,7 @@ include_recipe "apt" include_recipe "munin" +include_recipe "prometheus" include_recipe "ssl" package "nginx" @@ -61,6 +62,11 @@ package "libwww-perl" munin_plugin "nginx_request" munin_plugin "nginx_status" +prometheus_exporter "nginx" do + port 9113 + options "--nginx.scrape-uri=http://localhost:8050/nginx_status" +end + template "/usr/local/bin/nginx-old-cache-cleanup" do source "nginx-old-cache-cleanup.erb" owner "root"