]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nginx/recipes/default.rb
Rework apt repository configuration
[chef.git] / cookbooks / nginx / recipes / default.rb
index 1cc5e5b46abd1ada864ba7627e78d948183a96b5..7053cb1b54e20446cb299f2590a7dd13e4c385c9 100644 (file)
@@ -17,7 +17,7 @@
 # limitations under the License.
 #
 
-include_recipe "apt"
+include_recipe "apt::nginx"
 include_recipe "munin"
 include_recipe "prometheus"
 include_recipe "ssl"
@@ -64,6 +64,7 @@ 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