Open centralhardware opened 4 years ago
I was able to expose the metrics in the port 82 by creating the following file:
# cat /data/nginx/custom/http.conf
server {
listen 82;
location /nginx_status {
stub_status;
access_log off;
allow all;
}
}
Information about how to extend the npm: https://nginxproxymanager.com/advanced-config/#custom-nginx-configurations
Then expose the 82 port to the nginx-prometheus-exporter and configure it with: -nginx.scrape-uri=http://app:82/nginx_status
Issue is now considered stale. If you want to keep it open, please comment :+1:
Is your feature request related to a problem? Please describe.
I would like to be able to carry out monitoring without unnecessary difficulties using Prometheus
Describe the solution you'd like
add endpoints for sub_status and vts
Describe alternatives you've considered
I was able to get the sub status by redirecting to a non-existent host and custom configuration
but for vts it's not working