From fa0f3bfecb44f32539e2029be46b622c5c0363a8 Mon Sep 17 00:00:00 2001 From: IbraAoad Date: Thu, 17 Oct 2024 10:58:13 +0000 Subject: [PATCH 1/2] add metrics-proxy rock --- oci/metrics-proxy/contacts.yaml | 5 ++++ oci/metrics-proxy/documentation.yaml | 43 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 oci/metrics-proxy/contacts.yaml create mode 100644 oci/metrics-proxy/documentation.yaml diff --git a/oci/metrics-proxy/contacts.yaml b/oci/metrics-proxy/contacts.yaml new file mode 100644 index 00000000..437db0b4 --- /dev/null +++ b/oci/metrics-proxy/contacts.yaml @@ -0,0 +1,5 @@ +notify: + emails: + - observability@lists.launchpad.net + mattermost-channels: + - 1ayd5kim67bbing34i3h1x9uac \ No newline at end of file diff --git a/oci/metrics-proxy/documentation.yaml b/oci/metrics-proxy/documentation.yaml new file mode 100644 index 00000000..b658b0a2 --- /dev/null +++ b/oci/metrics-proxy/documentation.yaml @@ -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 + ``` \ No newline at end of file From 8c482085d289248aa956a3af3299a31f84c2a912 Mon Sep 17 00:00:00 2001 From: IbraAoad Date: Thu, 17 Oct 2024 12:57:37 +0000 Subject: [PATCH 2/2] adding image.yaml --- oci/metrics-proxy/image.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 oci/metrics-proxy/image.yaml diff --git a/oci/metrics-proxy/image.yaml b/oci/metrics-proxy/image.yaml new file mode 100644 index 00000000..26bc3c27 --- /dev/null +++ b/oci/metrics-proxy/image.yaml @@ -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 \ No newline at end of file