Skip to content

feat(monitoring): add an optional Hub health probe - #181

Open
teddashh wants to merge 3 commits into
mainfrom
feat/hub-healthz-probe-20261115
Open

teddashh wants to merge 3 commits into
mainfrom
feat/hub-healthz-probe-20261115

Conversation

@teddashh

@teddashh teddashh commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Adds an optional /healthz probe through a blackbox exporter bound to loopback. It requires HTTP 200 and an exact alive body, rejects redirects, and alerts after five minutes of failed probes or ten minutes without a running probe job.

The installer supports read-only checks, installation, and removal. It preserves existing Prometheus jobs and rules, restores changed configuration on failure, and can remove an exporter even when installation failed before the scrape job existed. First package installation stays masked until the loopback flags are written; operator masks are preserved. Failed package installation and removal can both be retried.

Validation:

  • 40 installer cases, including real promtool config validation, plus promtool rule tests and shellcheck.
  • Full ops suite: 359 passed.
  • Real distro package helper preserves the installer mask; real user systemd refuses startup while masked and starts the configured exporter on loopback only. Temporary services were removed.
  • Regression first failed on the previous implementation. Removing the startup mask, unmasking before configuration, or omitting the ownership check each fails the corresponding behavior test.
  • The earlier 10 blackbox HTTP response cases passed; the probe module is unchanged.

Host installation is pending. This does not add access to the Hub /metrics endpoint. The branch includes current main through #182.

@teddashh
teddashh force-pushed the feat/hub-healthz-probe-20261115 branch from 37afe45 to 397da79 Compare November 16, 2026 12:42
@teddashh
teddashh changed the base branch from fix/monitoring-listen-20261114 to main November 16, 2026 12:42

This branch has not been deployed

No deployments
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