Repository navigation
feat: box.agent heartbeat plugin with its own push token (v0.13.0) - #29
Merged
Merged
Conversation
Add the box.agent ingester: LLM boxes running vLLM POST a ~1 s JSON heartbeat to the push endpoint with a monitoring-only token (not the llmocean.api token). Objects: host, vllm, gpu:<idx>. Hard GPU faults (XID 79/48/64, uncorrectable ECC) are CRITICAL at once; booting, downloading, restarting and stopped are exempt; silence is CRITICAL after 5 missed beats. The box's own count of server answers by class is stored as metrics, and the push endpoint counts answers by status code (ingest_http_responses_total). Ingest rate limit 1/s -> 2/s. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
box.agentingester: LLM boxes running vLLM POST a ~1 s JSON heartbeat toPOST /ingest/v1/{check_id}; objectshost,vllm,gpu:<idx>.mpush_…, shown once, rotatable via/v1/checks/{id}/rotate-token), separate from the token box.agent uses with llmocean.api. No NATS.ingest_http_responses_total{code}, plus the box's own counts (monitor_responses) stored as metrics.Provisioning flow
llmocean.api creates the device +
box.agentcheck (interval_seconds: 1) with the tenant API key, receivespush_tokenonce, and injects-monitor-url/-monitor-tokeninto box.agent. On deprovision it disables/deletes the check. The tenant'smin_check_interval_secondsmust be 1.Test plan
plugins/boxagentunit tests + 10 s fuzz run (Go 1.25 in an isolated module)make checkon Go 1.27: the changes outsideplugins/boxagent(ingest, inventory, config, migration,TestBoxAgent) were NOT compiled or run locally (no Go 1.27 toolchain or test DB available)🤖 Generated with Claude Code