HUB
Sign inSign up

travix/varnish-prometheus

By travix

•Updated over 8 years ago

Docker implementation of the Prometheus Varnish Exporter

Image
0

10.0K

travix/varnish-prometheus repository overview

⁠Prometheus Varnish Exporter

Docker implementation of the Prometheus Varnish Exporter⁠

⁠Testing

# Build image
docker build -t varnish .


# Run NGINX as backend
docker run -d --name=nginx-alpine nginx:alpine

# Run Varnish
docker run -t -i -p 8080:80 -p 9131:9131 \
  -e "OFFLOAD_TO_HOST=nginx-alpine" \
  -e "OFFLOAD_TO_PORT=80" \
  --link=nginx-alpine \
  varnish

# Curl
curl http://localhost:9131/metrics

⁠License

MIT © Travix International⁠

Tag summary
Recent tags
Content type
Image
Digest
Size
48.2 MB
Last updated
over 8 years ago
docker pull travix/varnish-prometheus:latest