]> git.openstreetmap.org Git - chef.git/commitdiff
Set scrape URI for nginx monitoring
authorTom Hughes <tom@compton.nu>
Tue, 22 Sep 2020 16:57:44 +0000 (17:57 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 22 Sep 2020 16:57:44 +0000 (17:57 +0100)
cookbooks/nginx/recipes/default.rb

index 1cc5e5b46abd1ada864ba7627e78d948183a96b5..d215e51c82a7176bc565fc00deab209587c20ce6 100644 (file)
@@ -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