Serve probe targets for the blackbox exporter #6

Merged
kevinheyer merged 1 commit from probe-targets into main 2026-11-27 23:03:34 +01:00
Member

Neuer Endpunkt /prometheus/probes (gleiches Token, Cache wie die Node-Exporter-Liste): je aktivem Gast ein TCP-Ziel pro offenem TCP-Port der App (public/private) und ein HTTP-Ziel für die http://127.0.0.1:…-Health-URL, mit der Adresse des Gastes. UDP, docker, Netzlisten und https bekommen keinen eigenen Test. Braucht health in apps.json (iac-website), sonst nur TCP.

Getestet: probe_groups und probe_targets mit Ersatz-NetBox, check-app.sh (lint, zwei Läufe, Smoke-Test inkl. 403 des neuen Endpunkts, idempotent). Der Template-Vergleich schlug fehl, weil mein iac-core-Checkout älter als das Template war – unabhängig von dieser Änderung. Nicht getestet: gegen ein echtes NetBox.

Refs iac-monitoring#2

Neuer Endpunkt `/prometheus/probes` (gleiches Token, Cache wie die Node-Exporter-Liste): je aktivem Gast ein TCP-Ziel pro offenem TCP-Port der App (`public`/`private`) und ein HTTP-Ziel für die `http://127.0.0.1:…`-Health-URL, mit der Adresse des Gastes. UDP, `docker`, Netzlisten und `https` bekommen keinen eigenen Test. Braucht `health` in `apps.json` (iac-website), sonst nur TCP. Getestet: `probe_groups` und `probe_targets` mit Ersatz-NetBox, `check-app.sh` (lint, zwei Läufe, Smoke-Test inkl. 403 des neuen Endpunkts, idempotent). Der Template-Vergleich schlug fehl, weil mein iac-core-Checkout älter als das Template war – unabhängig von dieser Änderung. Nicht getestet: gegen ein echtes NetBox. Refs iac-monitoring#2
Serve probe targets for the blackbox exporter
All checks were successful
/ lint (push) Successful in 7s
/ lint (pull_request) Successful in 7s
f7b2c48d63
/prometheus/probes lists, for every active guest with an app of the
catalog, a TCP target for each TCP port open to the network (public or
private) and an HTTP target for the health URL of the app, with the
address of the guest instead of 127.0.0.1. UDP ports, ports that only
document ("docker"), ports with a network list and https health URLs get
no own probe. Same token and one-minute cache as the node exporter list.

Tested: probe_groups and probe_targets with a stubbed NetBox (open and
closed ports, UDP, https, missing IP, unknown app, cache); tools/check-app.sh
(lint, two dev container runs with smoke test including the 403 of the new
endpoint, idempotent). The template check failed against an iac-core checkout
older than the template, unrelated to this change. Not tested: against a
real NetBox.

Refs iac-monitoring#2
Sign in to join this conversation.
No description provided.