Add bellow config to nginx.conf (in to http block)
http {
server {
listen 8080;
location = /stub_status {
stub_status;
access_log off;
}
}
}
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
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