ubuntu/metrics-proxy

Verified Publisher

By Canonical

Updated 2 months ago

A lightweight proxy designed to expose a unified metrics endpoint for multiple Kubernetes pods.

Image

401

metrics-proxy | Ubuntu

Current metrics-proxy Docker Image from Canonical, based on Ubuntu. Receives security updates and rolls to newer metrics-proxy or Ubuntu release. This repository is free to use and exempted from per-user rate limits.

About metrics-proxy

Metrics Proxy is a lightweight proxy designed to expose a unified metrics endpoint for multiple Kubernetes pods. The proxy watches for pods in a Kubernetes cluster and listens on a configurable port, where it exposes aggregated metrics on a configurable endpoint. Read more on the project repo.

Tags and Architectures

LTS Up to 5 years of free security maintenance on LTS channels.

ESM Up to 10 years of customer security maintenance from Canonical's restricted repositories.

Channel TagsSupported untilCurrentlyArchitectures
0.1.1-24.04_stable0-24.04, 0-24.04_beta, 0-24.04_candidate, 0-24.04_edge, 0-24.04_stable, 0.1-24.04, 0.1-24.04_beta, 0.1-24.04_candidate, 0.1-24.04_edge, 0.1-24.04_stable, 0.1.1-24.04, 0.1.1-24.04_beta, 0.1.1-24.04_candidate, 0.1.1-24.04_edge03/2025metrics-proxy 0.1.1 on Ubuntu 24.04 LTSamd64
0.1.1-22.04_stable0-22.04, 0-22.04_beta, 0-22.04_candidate, 0-22.04_edge, 0-22.04_stable, 0.1-22.04, 0.1-22.04_beta, 0.1-22.04_candidate, 0.1-22.04_edge, 0.1-22.04_stable, 0.1.1-22.04, 0.1.1-22.04_beta, 0.1.1-22.04_candidate, 0.1.1-22.04_edge11/2025metrics-proxy 0.1.1 on Ubuntu 22.04 LTSamd64
track_risk

Channel Tags shows the most stable channel for that track ordered stable, candidate, beta, edge. More risky channels are always implicitly available. So if beta is listed, you can also pull edge. If candidate is listed, you can pull beta and edge. When stable is listed, all four are available. Images are guaranteed to progress through the sequence edge, beta, candidate before stable.

Commercial use and Extended Security Maintenance channels

If your usage includes commercial redistribution, or requires ESM or unavailable channels/versions, please get in touch with the Canonical team (or using rocks@canonical.com).

Usage

Launch this image locally:

docker run -d --name metrics-proxy-container -e TZ=UTC -p 15090:15090 ubuntu/metrics-proxy:0.1.1-24.04_stable

Access aggregated metrics at http://localhost:15090.

Parameters

ParameterDescription
-e TZ=UTCTimezone setting for the container.
-p 15090:15090Port mapping for accessing the metrics-proxy aggregated metrics endpoint.
-e POD_LABEL_SELECTOR="foo=bar"Specify labels to filter Kubernetes pods for metrics aggregation.
-e PORT="15090"The port on which the metrics-proxy listens for scrape requests.
-e SCRAPE_TIMEOUT="9s"Configures the timeout duration for scraping metrics from the pods.

Testing/Debugging

To debug the container:

docker logs -f metrics-proxy-container

To get an interactive shell:

docker exec -it metrics-proxy-container /bin/bash
Debugging

To debug the container:

docker exec -it metrics-proxy-container pebble logs -f metrics-proxy

To get an interactive shell:

docker exec -it metrics-proxy-container /bin/bash

Bugs and feature requests

If you find a bug in our image or want to request a specific feature, please file a bug here:

https://bugs.launchpad.net/ubuntu-docker-images/+filebug

Please title the bug "metrics-proxy: <issue summary>". Make sure to include the digest of the image you are using, from:

docker images --no-trunc --quiet ubuntu/metrics-proxy:<tag>

Deprecated channels & tags

These channels (tags) are not updated anymore. Please upgrade to newer channels, or reach out if you can't upgrade.

TrackVersionEOLUpgrade Path
track

Docker Pull Command

docker pull ubuntu/metrics-proxy