nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

add sub status and vts

Open centralhardware opened this issue 5 years ago • 3 comments

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

centralhardware avatar Aug 15 '20 09:08 centralhardware

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

angelbarrera92 avatar Mar 23 '21 16:03 angelbarrera92

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

github-actions[bot] avatar Mar 26 '24 01:03 github-actions[bot]

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

kevintomsgithub avatar Sep 30 '24 03:09 kevintomsgithub

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

github-actions[bot] avatar May 06 '25 02:05 github-actions[bot]