{"id":18305585,"url":"https://github.com/etiennetremel/docker-nginx-prometheus","last_synced_at":"2026-04-21T16:38:47.772Z","repository":{"id":145742105,"uuid":"117851141","full_name":"etiennetremel/docker-nginx-prometheus","owner":"etiennetremel","description":"Docker NGINX with Prometheus endpoint running on Alpine","archived":false,"fork":false,"pushed_at":"2018-01-17T15:15:20.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T10:47:46.610Z","etag":null,"topics":["docker","nginx","prometheus"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etiennetremel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-17T14:59:51.000Z","updated_at":"2018-06-14T11:29:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd3058a9-0d13-44dd-ac32-29e7ed42125d","html_url":"https://github.com/etiennetremel/docker-nginx-prometheus","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/etiennetremel/docker-nginx-prometheus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etiennetremel%2Fdocker-nginx-prometheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etiennetremel%2Fdocker-nginx-prometheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etiennetremel%2Fdocker-nginx-prometheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etiennetremel%2Fdocker-nginx-prometheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etiennetremel","download_url":"https://codeload.github.com/etiennetremel/docker-nginx-prometheus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etiennetremel%2Fdocker-nginx-prometheus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260273155,"owners_count":22984436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","nginx","prometheus"],"created_at":"2024-11-05T15:35:03.050Z","updated_at":"2026-04-21T16:38:47.736Z","avatar_url":"https://github.com/etiennetremel.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Alpine NGINX with Prometheus metrics\n====================================\n\n\u003e Slim Docker image with NGINX and Prometheus to serve metrics\n\n![Docker build status][badge-build-status] ![Image size][badge-image-size]\n\n[badge-build-status]: https://img.shields.io/docker/build/etiennetremel/nginx-prometheus.svg\n[badge-image-size]: https://img.shields.io/imagelayers/image-size/etiennetremel/nginx-prometheus/latest.svg\n\n## Getting started\n\n### Build\n\n```\n$ docker build -t etiennetremel/nginx-prometheus .\n```\n\n### Run\n\n```\n$ docker run -ti -p 80:80 -p 9101:9101 etiennetremel/nginx-prometheus\n```\n\n### Test\n\n```\n$ curl localhost:9101\n```\n\n## Provided metrics\n\n```\n# HELP nginx_http_request_duration_seconds HTTP request latency\n# TYPE nginx_http_request_duration_seconds histogram\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.005\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.010\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.020\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.030\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.050\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.075\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.100\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.200\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.300\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.400\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.500\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"00.750\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"01.000\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"01.500\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"02.000\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"03.000\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"04.000\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"05.000\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"10.000\"} 2\nnginx_http_request_duration_seconds_bucket{host=\"localhost\",le=\"+Inf\"} 2\nnginx_http_request_duration_seconds_count{host=\"localhost\"} 2\nnginx_http_request_duration_seconds_sum{host=\"localhost\"} 0\n# HELP nginx_http_requests_total Number of HTTP requests\n# TYPE nginx_http_requests_total counter\nnginx_http_requests_total{host=\"localhost\",status=\"200\"} 1\nnginx_http_requests_total{host=\"localhost\",status=\"404\"} 1\n# HELP nginx_metric_errors_total Number of nginx-lua-prometheus errors\n# TYPE nginx_metric_errors_total counter\nnginx_metric_errors_total 0\n```\n\n## References\n\nThis image is based on the following repositories:\n\n- [Docker Nginx](https://github.com/nginxinc/docker-nginx)\n- [Nginx development kit](https://github.com/simpl/ngx_devel_kit)\n- [Nginx Lua module](https://github.com/openresty/lua-nginx-module)\n- [Nginx Lua Prometheus](https://github.com/knyar/nginx-lua-prometheus)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetiennetremel%2Fdocker-nginx-prometheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetiennetremel%2Fdocker-nginx-prometheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetiennetremel%2Fdocker-nginx-prometheus/lists"}