NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.34k stars 2.59k forks source link

add sub status and vts #561

Open centralhardware opened 4 years ago

centralhardware commented 4 years ago

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

location = /stub_status {
stub_status on;
}

but for vts it's not working

angelbarrera92 commented 3 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

github-actions[bot] commented 6 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

kevintomsgithub commented 6 days ago

https://hub.docker.com/repository/docker/kevintomsdocker/nginxproxymanager-vts