REST API
Fleet Monitor
On this page
Live topology and health for a fleet — a group of agents running together. Unlike trace endpoints, which are historical, the fleet API is near-real-time and backed by a streaming WebSocket.
Vendor & cloud attribution — how a cloud fleet "connects"
Fleet Monitor is telemetry-driven. Evigauge does not hold your AWS/Azure/GCP credentials and never calls your cloud's control plane — it only sees the spans your agents emit. "Which cloud or vendor a fleet runs in" is therefore inferred from span attributes, not discovered by logging into your cloud account. Connecting a cloud fleet means two things:
- Instrument the agents so they send spans to the ingest API, and
- Make sure each span carries its cloud/vendor identity, by any of the levers below.
Once that identity is present (and the feature is enabled — see Enablement), the fleet graph groups as vendor › fleet › agent, draws edges between agents in different clouds, and raises boundary-fault flags when a downstream agent in one vendor/cloud fails under a parent from another.
The vendor ladder (first match wins)
At ingest, each span's (vendor_id, vendor_role) is resolved in this order:
| # | Source attribute | Result | Who sets it |
|---|---|---|---|
| 1 | evigauge.vendor_id (+ evigauge.vendor_role) | that vendor | the agent, explicitly (SDK/OTLP attribute) |
| 2 | cloud.provider (aws / azure / gcp) | vendor = the cloud, role cloud | automatic — OpenTelemetry cloud resource detectors |
| 3 | service.namespace | that namespace, role unknown | OTel resource |
| 4 | a workspace vendor-map rule (below) | the rule's vendor_id + vendor_role | workspace admin, no agent change |
| 5 | host.name / server.address | that host, role unknown | OTel resource |
| 6 | (none matched) | "" — the unattributed bucket | — |
The easy path for "which cloud": if your agents run the OpenTelemetry SDK with its standard cloud resource detectors enabled,
cloud.provideris populated automatically, so a fleet running entirely in AWS shows up as theawsvendor with zero extra config. A mixed deployment (some AWS, some Azure) shows up as two vendor buckets with cross-cloud edges between them. Region is kept as span detail, not as identity.
Vendor map (admin control panel)
When agents can't set their own vendor attribute, a workspace admin labels them centrally with priority-ordered regex rules — no agent code change.
GET /v1/observ/orgs/{org}/workspaces/{ws}/vendor-map # list rules · role: dev/admin/owner
PUT /v1/observ/orgs/{org}/workspaces/{ws}/vendor-map # replace all · role: dev/admin/owner
vendor-map is workspace-level (no ?project=), unlike the other fleet routes which
require ?project=<slug>. PUT takes a bare JSON array that replaces every rule, validates all
of them first (422 invalid_vendor_rule, no partial write), and is audited.
Rule shape:
{
"priority": 10,
"match_field": "host.name",
"match_pattern": "\\.azure\\.",
"vendor_id": "azure",
"vendor_role": "cloud"
}
match_field∈service.name·agent.name·server.address·host.name·service.namespacematch_pattern: 1–200 chars, valid regex (no nested quantifiers, no backreferences), applied withre.searchvendor_id: 1–128 chars ·vendor_role∈in_house·supplier·integrator·model_provider·cloud·unknown- Max 200 rules; lowest
priorityis tried first.
Examples: host.name ~ \.azure\. → vendor=azure, role=cloud; service.name ~ ^billing- → vendor=acme-billing, role=supplier.
Boundary faults
The multi-cloud payoff: when a span fails and its parent belongs to a different vendor/cloud,
Evigauge raises a boundary_fault flag (in addition to the normal error flag). That's how you
attribute a failure that crosses a cloud or vendor boundary — e.g. your in-house AWS agent calls a
supplier's Azure agent and it fails there. Boundary-fault rows appear on the fleet flags and
vendor-rollup endpoints with vendor_id, counterparty_vendor, and the real error_type /
error_message / error_stage.
Enablement
Vendor/cloud attribution ships dark, behind EVIGAUGE_FLEET_VENDOR_ATTRIBUTION_ENABLED
(default off). While off, the new routes still respond but return a single unattributed ("")
vendor bucket. To send the cloud/vendor attributes from SDK apps, use evigauge-trace with the
Fleet v2 error/vendor attributes; OTLP-collector apps need no SDK change (identity rides in on OTel
resource attributes, error detail on the OTel exception span event).
List fleets
GET /v1/observ/orgs/{org}/workspaces/{ws}/fleet/fleets
Auth: API key or JWT · Role: viewer
Response 200 — not schema-modelled
{
"fleets": [
{
"fleet_id": "checkout-fleet",
"agent_count": 12,
"status": "active",
"last_seen": "2026-09-01T14:23:05Z",
"open_flag_count": 2
}
]
}
Examples
fl = evigauge.get("/v1/observ/orgs/{org}/workspaces/{ws}/fleet/fleets")
for f in fl["fleets"]:
print(f"{f['fleet_id']:20} {f['agent_count']} agents {f['open_flag_count']} flags")
const fl = await evigauge.get("/v1/observ/orgs/{org}/workspaces/{ws}/fleet/fleets");
fl.fleets.forEach((f: any) =>
console.log(`${f.fleet_id.padEnd(20)} ${f.agent_count} agents ${f.open_flag_count} flags`));
Fleet graph
GET /v1/observ/orgs/{org}/workspaces/{ws}/fleet/{fleet_id}/graph
The fleet's agent topology — nodes and the call edges between them, with token and latency rollups per node.
Auth: API key or JWT · Role: viewer
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
org | string | ✅ | Organization slug |
ws | string | ✅ | Workspace slug |
fleet_id | string | ✅ | Fleet identifier |
Response 200 — not schema-modelled
{
"fleet_id": "checkout-fleet",
"nodes": [
{ "id": "router", "kind": "agent", "call_count": 8120, "p95_latency_ms": 210, "total_tokens": 410233, "status": "ok" },
{ "id": "pricing", "kind": "agent", "call_count": 6402, "p95_latency_ms": 4900, "total_tokens": 992010, "status": "flagged" }
],
"edges": [{ "from": "router", "to": "pricing", "call_count": 6402 }]
}
Examples
g = evigauge.get(f"/v1/observ/orgs/{{org}}/workspaces/{{ws}}/fleet/{fleet_id}/graph")
for n in g["nodes"]:
mark = "⚠" if n["status"] != "ok" else " "
print(f"{mark} {n['id']:15} p95={n['p95_latency_ms']}ms tokens={n['total_tokens']:,}")
const g = await evigauge.get(
`/v1/observ/orgs/{org}/workspaces/{ws}/fleet/${fleetId}/graph`);
g.nodes.forEach((n: any) =>
console.log(`${n.status !== "ok" ? "⚠" : " "} ${n.id.padEnd(15)} p95=${n.p95_latency_ms}ms tokens=${n.total_tokens}`));
Fleet flags
GET /v1/observ/orgs/{org}/workspaces/{ws}/fleet/{fleet_id}/flags
Health flags raised on the fleet. Flags auto-resolve: after 3 consecutive
clean spans, a resolve event is emitted and the flag leaves the active set.
Auth: API key or JWT · Role: viewer
Query parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
status | string | ➖ | active | active — one row per still-open flag episode; all — the raw append-only event log (fires and resolves), newest first |
Examples
flags = evigauge.get(
f"/v1/observ/orgs/{{org}}/workspaces/{{ws}}/fleet/{fleet_id}/flags",
params={"status": "active"},
)
print(flags)
const flags = await evigauge.get(
`/v1/observ/orgs/{org}/workspaces/{ws}/fleet/${fleetId}/flags`, { status: "active" });
console.log(flags);
Pause / resume / clear a fleet
POST /v1/observ/orgs/{org}/workspaces/{ws}/fleet/{fleet_id}/pause
POST /v1/observ/orgs/{org}/workspaces/{ws}/fleet/{fleet_id}/resume
POST /v1/observ/orgs/{org}/workspaces/{ws}/fleet/{fleet_id}/clear
Auth: API key or JWT · Role: admin · Request body: none
| Action | Effect |
|---|---|
pause | Stops fleet monitoring and flag evaluation. Spans still ingest. |
resume | Resumes monitoring from live state. |
clear | Discards accumulated fleet state and starts a fresh topology. |
pausedoes not stop your agents. Evigauge never controls your runtime — it pauses monitoring only. Andclearis destructive to accumulated topology state; the underlying spans are untouched.
Examples
base = f"/v1/observ/orgs/{{org}}/workspaces/{{ws}}/fleet/{fleet_id}"
evigauge.post(f"{base}/pause")
evigauge.post(f"{base}/resume")
evigauge.post(f"{base}/clear") # destructive: resets topology state
const base = `/v1/observ/orgs/{org}/workspaces/{ws}/fleet/${fleetId}`;
await evigauge.post(`${base}/pause`);
await evigauge.post(`${base}/resume`);
await evigauge.post(`${base}/clear`); // destructive: resets topology state
Mint a WebSocket ticket
POST /v1/observ/orgs/{org}/workspaces/{ws}/fleet/ws-ticket
Mints a short-lived, single-use ticket for the fleet WebSocket. Browsers
cannot set an Authorization header on a native WebSocket, so the ticket rides
the query string instead.
Auth: API key or JWT · Role: viewer · Request body: none
Response 200 — not schema-modelled
{ "ticket": "wst_01J8XYZ...", "expires_in": 60 }
The ticket is consumed on first use. Mint a fresh one for every connection — including every reconnect after a drop.
Fleet WebSocket stream
WSS wss://api.evigauge.ai/ws/fleet/{workspace_id}?ticket={ticket}
Streams live fleet delta frames. Note the parameter is {workspace_id} — a
UUID, not the slug used elsewhere in the fleet API. The ticket is validated
before the connection is accepted.
| Close code | Meaning |
|---|---|
1008 | Ticket missing, expired, already used, or bound to a different workspace |
Examples
import json, httpx, websockets # pip install websockets
def mint_ticket():
return evigauge.post("/v1/observ/orgs/{org}/workspaces/{ws}/fleet/ws-ticket")["ticket"]
async def stream(workspace_uuid: str):
# A ticket is single-use: mint a new one for every connect and reconnect.
url = f"wss://api.evigauge.ai/ws/fleet/{workspace_uuid}?ticket={mint_ticket()}"
async with websockets.connect(url) as ws:
async for raw in ws:
frame = json.loads(raw)
print(frame["type"], frame.get("nodes", []))
async function mintTicket(): Promise<string> {
const { ticket } = await evigauge.post(
"/v1/observ/orgs/{org}/workspaces/{ws}/fleet/ws-ticket");
return ticket;
}
async function stream(workspaceUuid: string) {
// A ticket is single-use: mint a new one for every connect and reconnect.
const ws = new WebSocket(
`wss://api.evigauge.ai/ws/fleet/${workspaceUuid}?ticket=${await mintTicket()}`);
ws.onmessage = (e) => {
const frame = JSON.parse(e.data);
console.log(frame.type, frame.nodes);
};
ws.onclose = (e) => {
if (e.code === 1008) console.error("Ticket rejected — mint a fresh one.");
else setTimeout(() => stream(workspaceUuid), 1000); // reconnect with a new ticket
};
}