Serve probe targets for the blackbox exporter #6
No reviewers
Labels
No labels
Bug
Feature
Idee
agent-freigabe
regression
status
ausarbeiten
status
bereit
status
in-arbeit
status
review
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iac/iac-provisioner!6
Loading…
Reference in a new issue
No description provided.
Delete branch "probe-targets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 diehttp://127.0.0.1:…-Health-URL, mit der Adresse des Gastes. UDP,docker, Netzlisten undhttpsbekommen keinen eigenen Test. Brauchthealthinapps.json(iac-website), sonst nur TCP.Getestet:
probe_groupsundprobe_targetsmit 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
/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