Sign inSign up

quynhbofit/nginx-prometheus-exporter

By quynhbofit

•Updated over 3 years ago

Image
0

51

quynhbofit/nginx-prometheus-exporter repository overview

⁠Config nginx

Add bellow config to nginx.conf (in to http block)

http {
    server {
        listen 8080;
        location = /stub_status {
                stub_status;
                access_log off;
        }
    }
}

⁠Run container

docker run -d -p 9113:9113 --name nginx-prometheus-exporter --network=host nginx/nginx-prometheus-exporter:0.11.0 -nginx.scrape-uri=http://localhost:8080/stub_status

Tag summary

Content type

Image

Digest

sha256:eecab299d…

Size

3.5 MB

Last updated

over 3 years ago

docker pull quynhbofit/nginx-prometheus-exporter:0.11.0