Docker NGINX with Prometheus endpoint running on Alpine
6.0K
Slim Docker image with NGINX and Prometheus to serve metrics
$ docker build -t etiennetremel/nginx-prometheus .
$ docker run -ti -p 80:80 -p 9101:9101 etiennetremel/nginx-prometheus
$ curl localhost:9101
# HELP nginx_http_request_duration_seconds HTTP request latency
# TYPE nginx_http_request_duration_seconds histogram
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.005"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.010"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.020"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.030"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.050"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.075"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.100"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.200"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.300"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.400"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.500"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="00.750"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="01.000"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="01.500"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="02.000"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="03.000"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="04.000"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="05.000"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="10.000"} 2
nginx_http_request_duration_seconds_bucket{host="localhost",le="+Inf"} 2
nginx_http_request_duration_seconds_count{host="localhost"} 2
nginx_http_request_duration_seconds_sum{host="localhost"} 0
# HELP nginx_http_requests_total Number of HTTP requests
# TYPE nginx_http_requests_total counter
nginx_http_requests_total{host="localhost",status="200"} 1
nginx_http_requests_total{host="localhost",status="404"} 1
# HELP nginx_metric_errors_total Number of nginx-lua-prometheus errors
# TYPE nginx_metric_errors_total counter
nginx_metric_errors_total 0
This image is based on the following repositories:
Content type
Image
Digest
Size
16.9 MB
Last updated
over 8 years ago
docker pull etiennetremel/nginx-prometheus