A rock for exporting Prometheus metrics from an NGINX instance.
10K+
ubuntu/nginx-prometheus-exporter is a rock for nginx-prometheus-exporter maintained by Canonical.
Nginx prometheus-exporter is a Prometheus exporter for Nginx. Read more in the official documentation. Please note that this repository holds a rock instead of a Dockerfile-based image. As such, the entrypoint is Pebble. Read more in the Rockcraft docs.
[Learn more about nginx-prometheus-exporter]
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures | |
|---|---|---|---|---|---|
1.5-26.04_stable | aliases1-26.04, 1-26.04_beta, 1-26.04_candidate, 1-26.04_edge, 1-26.04_stable, 1.5-26.04, 1.5-26.04_beta, 1.5-26.04_candidate, 1.5-26.04_edge | 05/2031 | 1.5 | 26.04 | amd64 |
| Tags | Support ended on | Upgrade Path | |
|---|---|---|---|
1.5-24.04_stable | aliases1-24.041-24.04_beta1-24.04_candidate1-24.04_edge1-24.04_stable1.5-24.041.5-24.04_beta1.5-24.04_candidate1.5-24.04_edge | 01/2026 | - |
1.4-24.04_stable | aliases1.4-24.041.4-24.04_beta1.4-24.04_candidate1.4-24.04_edge | 10/2025 | - |
This rock's entrypoint is Pebble, a container-optimized init process that enables the orchestration of a collection of local service processes as an organized set.
To view the Pebble services and checks defined in this rock:
docker run --rm ubuntu/nginx-prometheus-exporter:1.5-24.04_stable plan
To run this rock, use any of the usual container runtimes, for example, docker:
docker run --name nginx-prometheus-exporter-container \
-p 9113:9113 \
ubuntu/nginx-prometheus-exporter:1.5-24.04_stable
The exporter starts and exposes Prometheus metrics on port 9113. Access the metrics endpoint at http://localhost:9113/metrics.
To view the logs of the running container, run:
docker exec nginx-prometheus-exporter-container pebble logs
Or, for a specific service:
docker exec nginx-prometheus-exporter-container pebble logs <service>
Rocks may have predefined health checks that you can list by running:
docker exec nginx-prometheus-exporter-container pebble checks
The overall health of your container can be inspected via:
docker exec nginx-prometheus-exporter-container pebble health
| Option | Description | Default |
|---|---|---|
| TZ | Timezone. | UTC |
| Option | Description | Default |
|---|---|---|
-p <port>:9113 | Expose port 9113 on the host. | None |
Canonical is the provider of this container image. It is the user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within, as well as with Canonical’s IP Policy.
Content type
Image
Digest
sha256:e89fc3da6…
Size
45.7 MB
Last updated
3 months ago
docker pull ubuntu/nginx-prometheus-exporter:1.5-26.04_stablePulls:
570
Last week