Repository navigation
Add a Metrics suite for Prometheus and prepare v0.4.0 - #2
Merged
Merged
Conversation
A sixth suite, 6 · Metrics, visualises a Prometheus server: built-in trend panels for node_exporter, cAdvisor, Proxmox VE and Prometheus itself, a targets view with scrape state and reload status, pinned metrics saved in settings, a host chooser for multi-instance servers, and a setup view that offers exporter install steps through the usual approval card. The server is named with --prometheus, SYSTEMDOC_PROMETHEUS or prometheus_url, or detected from a running Prometheus service or container. The client lives in internal/promapi with bounded requests, no redirects and system TLS roots only; a bearer token from SYSTEMDOC_PROMETHEUS_TOKEN is never stored.
The full-screen focus view lists every series and the PromQL already; staticcheck flagged the leftover method.
b404dev
force-pushed
the
feat/prometheus-metrics
branch
from
October 27, 2026 09:20
57a8a51 to
bf56f07
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A sixth suite, 6 · Metrics, visualises a Prometheus server from inside the terminal: built-in trend panels for node_exporter, cAdvisor (standalone or kubelet), Proxmox VE and Prometheus itself, drawn with the shared block/braille/ASCII renderers plus a bar variant, with a full-screen view per panel; a targets view with scrape state, errors, server version and configuration reload status; pinned metrics chosen from the server's metric names and saved in settings; a host chooser for multi-instance servers; and a setup view that detects the package manager, Docker and Proxmox and offers exporter install steps through the usual approval card, with
sudosteps authorised like other actions.The server is named with
--prometheus,SYSTEMDOC_PROMETHEUSorprometheus_url, or detected from a running Prometheus service or container. Open in Metrics appears in the Actions menu for Prometheus and exporter workloads. The client lives ininternal/promapiwith bounded requests, no redirects and system TLS roots only; a bearer token fromSYSTEMDOC_PROMETHEUS_TOKENis never stored. The playground gains a Prometheus service and config.The branch also prepares the v0.4.0 changelog.
Validation:
go test ./...,make test(race),make check(installer tests, vet) andmake cross(linux amd64/arm64, darwin arm64) passed locally. Lint and benchmarks run in CI. No live Prometheus server or SSH session was exercised for this merge.