Skip to content

Add a Metrics suite for Prometheus and prepare v0.4.0 - #2

Merged
b404dev merged 3 commits into
mainfrom
feat/prometheus-metrics
Oct 27, 2026
Merged

b404dev merged 3 commits into
mainfrom
feat/prometheus-metrics

Conversation

@b404dev

@b404dev b404dev commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

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 sudo steps authorised like other actions.

The server is named with --prometheus, SYSTEMDOC_PROMETHEUS or prometheus_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 in internal/promapi with bounded requests, no redirects and system TLS roots only; a bearer token from SYSTEMDOC_PROMETHEUS_TOKEN is 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) and make 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.

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
b404dev force-pushed the feat/prometheus-metrics branch from 57a8a51 to bf56f07 Compare October 27, 2026 09:20
@b404dev
b404dev merged commit a06921a into main Oct 27, 2026
8 checks passed
@b404dev
b404dev deleted the feat/prometheus-metrics branch October 27, 2026 09:22
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.

2 participants