Skip to content

Add metrics-server to the full image - #29

Merged
slucheninov merged 1 commit into
mainfrom
t3/add-metrics-server-image
Dec 1, 2026
Merged

slucheninov merged 1 commit into
mainfrom
t3/add-metrics-server-image

Conversation

@slucheninov

@slucheninov slucheninov commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The full image now ships metrics-server v1.4.1 alongside the other sidecars.

  • The binary is copied from ghcr.io/tentens-tech/metrics-server:v1.4.1 (Dependabot keeps it updated like the other image stages) to /usr/lib/metrics-server/metrics-server and compressed with UPX.
  • /usr/bin/metrics-server is a small sh wrapper that execs the binary with -uds=/run/metrics-server/metric-server.sock. The upstream default ./metric-server.sock is relative to the working directory, and / isn't writable in this image. A -uds passed on the command line comes later and takes precedence.
  • /run/metrics-server is created and owned by the app user (1010).
  • CI checks that metrics-server is present and that /run/metrics-server is writable; README and the release notes list it among the sidecars.

amqproxy is already at the latest version (3.2.2-1 on GitHub and in the bookworm apt repo), so it is unchanged.

Testing

  • Built the full image locally and ran it as UID 1010:
    • metrics-server with no flags listens on /run/metrics-server/metric-server.sock and exposes :9099/metrics.
    • metrics-server -uds=/tmp/x.sock listens on /tmp/x.sock.
    • gomcrouter, metrics-server, phpscope are executable.

Note

Low Risk
Packaging, docs, and CI verification only; no changes to process-wrapper runtime logic or auth paths.

Overview
The full process-wrapper Docker image now bundles metrics-server v1.4.1 alongside the other sidecars.

The binary is pulled from ghcr.io/tentens-tech/metrics-server:v1.4.1, installed under /usr/lib/metrics-server/, included in the UPX strip/compress pass, and exposed via a /usr/bin/metrics-server wrapper that defaults the Unix socket to /run/metrics-server/metric-server.sock (directory created for UID/GID 1010). Command-line -uds still overrides the wrapper default.

CI sidecar checks now require metrics-server to be executable and /run/metrics-server writable. README and release notes list metrics-server in the full-image sidecar set.

Reviewed by Cursor Bugbot for commit 41db77f. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • New Features
    • The full Docker image now includes metrics-server, which exposes metrics from a Unix socket for Prometheus. The default socket is /run/metrics-server/metric-server.sock; override it with the -uds option.
  • Documentation
    • Updated Docker image documentation and release notes to describe the included sidecar and its socket configuration.

Copy metrics-server v1.4.1 from ghcr.io/tentens-tech/metrics-server and
install a wrapper that defaults -uds to
/run/metrics-server/metric-server.sock, a directory owned by the app user.
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The full Docker image now includes metrics-server and a wrapper that sets its default Unix socket path. CI verifies the binary and socket directory. The release notes and README now describe the sidecar.

Changes: Metrics-server image support

Layer / File(s) Summary
Add metrics-server to the Docker image
deployment/docker/Dockerfile
The Dockerfile adds the metrics-server image stage, copies and compresses its binary, and installs a wrapper that sets the default socket path while forwarding command-line arguments.
Check and document metrics-server
.github/workflows/ci.yml, .github/workflows/release.yml, README.md
CI checks that metrics-server is executable and that /run/metrics-server is writable. The release notes and README list metrics-server and describe its socket configuration.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: Minimal · up to 41db7

This change adds the metrics-server sidecar to the full image with a default socket path and updates CI checks and docs. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Add metrics-server to the full image" matches the main change. The PR objectives state that it adds metrics-server v1.4.1 to the full Docker image. The Dockerfile copies the binary, adds a …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Add metrics-server to the full image" matches the main change. The PR objectives state that it adds metrics-server v1.4.1 to the full Docker image. The Dockerfile copies the binary, adds a wrapper, and creates the socket directory. The title is concise, specific, and does not use vague terms.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d47a12d9-53c8-4494-ad5a-46720c3fdd8b
Commits

Reviewing files that changed from the base of the PR and between f6490c9 and 41db77f.

Files selected for processing: 4

  • .github/workflows/ci.yml
  • .github/workflows/release.yml
  • README.md
  • deployment/docker/Dockerfile

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Cursor Bugbot completed successfully with no findings that need human review, and Cursor Security Agent was not present. No approval policy on the base branch required extra review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver: github

@slucheninov
slucheninov merged commit bce7c83 into main Dec 1, 2026
17 checks passed
@slucheninov
slucheninov deleted the t3/add-metrics-server-image branch December 1, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant