Sign inSign up

ubuntu/nginx-prometheus-exporter

Verified Publisher

By Canonical

•Updated 3 months ago

A rock for exporting Prometheus metrics from an NGINX instance.

Image
Monitoring & observability
1

10K+

ubuntu/nginx-prometheus-exporter repository overview

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⁠]

⁠Tags and Architectures

NOTE: These tags follow a specific naming convention that respects the concept of channels⁠.

TagsSupported untilVersionBaseArchitectures
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/20311.526.04amd64
View deprecated tags
TagsSupport ended onUpgrade Path
1.5-24.04_stable
aliases1-24.04, 1-24.04_beta, 1-24.04_candidate, 1-24.04_edge, 1-24.04_stable, 1.5-24.04, 1.5-24.04_beta, 1.5-24.04_candidate, 1.5-24.04_edge
01/2026 -
1.4-24.04_stable
aliases1.4-24.04, 1.4-24.04_beta, 1.4-24.04_candidate, 1.4-24.04_edge
10/2025 -

⁠Get started

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.

[Learn more about Pebble⁠]

⁠Inspect

To view the Pebble services⁠ and checks⁠ defined in this rock:

docker run --rm ubuntu/nginx-prometheus-exporter:1.5-24.04_stable plan
⁠Run

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⁠.

⁠Get logs

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>
⁠Monitor health checks

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

⁠Configuration

⁠Environment variables
OptionDescriptionDefault
TZTimezone.UTC
⁠Ports
OptionDescriptionDefault
-p <port>:9113Expose port 9113 on the host.None

[Report a bug⁠] [Contribute⁠]

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⁠.

Tag summary

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_stable

This week's pulls

Pulls:

570

Last week