Relay installer logs to VictoriaLogs via POST /logs #9

Merged
benvin merged 1 commits from benvin/log-relay into main 2026-10-03 20:46:08 +10:00
Member

A host being PXE-discovered or installed is not in Kubernetes, so vlagent cannot collect its logs and a failed install leaves no record behind; that environment also has no internal-CA trust or credentials for the HTTPS-only log ingest, and bootapi is already the plain-HTTP broker it can reach.

  • add POST /logs, token-guarded like POST /provisioned, forwarding ndjson to vlinsert jsonline keyed on serial+phase
  • stamp the observed source IP and resolved NetBox device name into extra_fields
  • return 202 on a sink failure: logs never block an install (no retries, no buffering)
  • add BOOTAPI_VLINSERT_URL (empty disables) and BOOTAPI_VLINSERT_TIMEOUT
  • add bootapi_log_relay_total and bootapi_log_relay_lines_total
A host being PXE-discovered or installed is not in Kubernetes, so vlagent cannot collect its logs and a failed install leaves no record behind; that environment also has no internal-CA trust or credentials for the HTTPS-only log ingest, and bootapi is already the plain-HTTP broker it can reach. - add POST /logs, token-guarded like POST /provisioned, forwarding ndjson to vlinsert jsonline keyed on serial+phase - stamp the observed source IP and resolved NetBox device name into extra_fields - return 202 on a sink failure: logs never block an install (no retries, no buffering) - add BOOTAPI_VLINSERT_URL (empty disables) and BOOTAPI_VLINSERT_TIMEOUT - add bootapi_log_relay_total and bootapi_log_relay_lines_total
unkin-agent added 1 commit 2026-10-03 19:44:40 +10:00
add POST /logs installer log relay to VictoriaLogs
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
3c77895788
A host being PXE-discovered or installed is not in Kubernetes, so vlagent
cannot collect its logs and a failed install leaves no record; the installer
environment has no internal-CA trust or credentials for the HTTPS log ingest,
and bootapi is already the plain-HTTP broker it can reach.

- add POST /logs, token-guarded like POST /provisioned, relaying ndjson to
  vlinsert's jsonline endpoint keyed on serial+phase
- stamp observed source IP and resolved NetBox device name into extra_fields
- return 202 on a sink failure so logs never block an install
- add BOOTAPI_VLINSERT_URL/_TIMEOUT and bootapi_log_relay metrics
benvin merged commit 3d124eac46 into main 2026-10-03 20:46:08 +10:00
benvin deleted branch benvin/log-relay 2026-10-03 20:46:08 +10:00
Sign in to join this conversation.