Add nginx metrics to prometheus

This commit is contained in:
Manuel de Brito Fontes 2016-11-28 22:39:17 -03:00
parent 81cd7782c6
commit 86dbf979cb
8 changed files with 477 additions and 17 deletions

View file

@ -349,6 +349,17 @@ http {
{{ end }}
}
# this location is used to extract nginx metrics
# using prometheus.
# TODO: enable extraction for vts module.
location /internal_nginx_status {
allow 127.0.0.1;
deny all;
access_log off;
stub_status on;
}
location / {
set $proxy_upstream_name "upstream-default-backend";
proxy_pass http://upstream-default-backend;