Repository navigation
Add metrics-server to the full image - #29
Conversation
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.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |


Summary
The full image now ships metrics-server v1.4.1 alongside the other sidecars.
ghcr.io/tentens-tech/metrics-server:v1.4.1(Dependabot keeps it updated like the other image stages) to/usr/lib/metrics-server/metrics-serverand compressed with UPX./usr/bin/metrics-serveris a smallshwrapper thatexecs the binary with-uds=/run/metrics-server/metric-server.sock. The upstream default./metric-server.sockis relative to the working directory, and/isn't writable in this image. A-udspassed on the command line comes later and takes precedence./run/metrics-serveris created and owned by the app user (1010).metrics-serveris present and that/run/metrics-serveris writable; README and the release notes list it among the sidecars.amqproxy is already at the latest version (
3.2.2-1on GitHub and in the bookworm apt repo), so it is unchanged.Testing
metrics-serverwith no flags listens on/run/metrics-server/metric-server.sockand exposes:9099/metrics.metrics-server -uds=/tmp/x.socklistens on/tmp/x.sock.gomcrouter,metrics-server,phpscopeare executable.Note
Low Risk
Packaging, docs, and CI verification only; no changes to process-wrapper runtime logic or auth paths.
Overview
The full
process-wrapperDocker 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-serverwrapper that defaults the Unix socket to/run/metrics-server/metric-server.sock(directory created for UID/GID1010). Command-line-udsstill overrides the wrapper default.CI sidecar checks now require
metrics-serverto be executable and/run/metrics-serverwritable. 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
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-udsoption.