]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nginx/recipes/default.rb
Replace intelmas with sst
[chef.git] / cookbooks / nginx / recipes / default.rb
index 20128a1cb4525a9de8a02e35d21bc076f3c63d6e..7053cb1b54e20446cb299f2590a7dd13e4c385c9 100644 (file)
@@ -17,8 +17,9 @@
 # limitations under the License.
 #
 
 # limitations under the License.
 #
 
-include_recipe "apt"
+include_recipe "apt::nginx"
 include_recipe "munin"
 include_recipe "munin"
+include_recipe "prometheus"
 include_recipe "ssl"
 
 package "nginx"
 include_recipe "ssl"
 
 package "nginx"
@@ -61,6 +62,11 @@ package "libwww-perl"
 munin_plugin "nginx_request"
 munin_plugin "nginx_status"
 
 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"
 template "/usr/local/bin/nginx-old-cache-cleanup" do
   source "nginx-old-cache-cleanup.erb"
   owner "root"