Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add metrics-proxy rock #267

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions oci/metrics-proxy/contacts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
notify:
emails:
- [email protected]
mattermost-channels:
- 1ayd5kim67bbing34i3h1x9uac
43 changes: 43 additions & 0 deletions oci/metrics-proxy/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: 1
# --- OVERVIEW INFORMATION ---
application: metrics-proxy
description: >
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](https://github.com/canonical/metrics-k8s-proxy).
# --- USAGE INFORMATION ---
docker:
parameters:
- -p 15090:15090
access: Access aggregated metrics at `http://localhost:15090`.

parameters:
- type: -e
value: 'TZ=UTC'
description: Timezone setting for the container.
- type: -p
value: '15090:15090'
description: Port mapping for accessing the metrics-proxy aggregated metrics endpoint.
- type: --labels
value: 'foo=bar'
description: Specify labels to filter Kubernetes pods for metrics aggregation.
- type: --port
value: '15090'
description: The port on which the metrics-proxy listens for scrape requests.
- type: --scrape_timeout
value: '9s'
description: Configures the timeout duration for scraping metrics from the pods.

debug:
text: |
### Debugging

To debug the container:
```bash
docker exec -it metrics-proxy-container pebble logs -f metrics-proxy
```
To get an interactive shell:
```bash
docker exec -it metrics-proxy-container /bin/bash
```
18 changes: 18 additions & 0 deletions oci/metrics-proxy/image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 1
upload:
- source: canonical/metrics-proxy-rock
commit: 06edec200eec7861afc54c5afd735c4a722e5ca1
directory: "0.1.0"
release:
0.1.0-22.04:
end-of-life: "2025-10-17T00:00:00Z"
risks:
- stable
0.1-22.04:
end-of-life: "2025-10-17T00:00:00Z"
risks:
- stable
0-22.04:
end-of-life: "2025-10-17T00:00:00Z"
risks:
- stable
Loading