Add nginx metrics to prometheus
This commit is contained in:
parent
81cd7782c6
commit
86dbf979cb
8 changed files with 477 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue