DEVELOPER DOCS

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:

  1. Instrument the agents so they send spans to the ingest API, and
  2. 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 attributeResultWho sets it
1evigauge.vendor_id (+ evigauge.vendor_role)that vendorthe agent, explicitly (SDK/OTLP attribute)
2cloud.provider (aws / azure / gcp)vendor = the cloud, role cloudautomatic — OpenTelemetry cloud resource detectors
3service.namespacethat namespace, role unknownOTel resource
4a workspace vendor-map rule (below)the rule's vendor_id + vendor_roleworkspace admin, no agent change
5host.name / server.addressthat host, role unknownOTel 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.provider is populated automatically, so a fleet running entirely in AWS shows up as the aws vendor 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.

HTTP
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:

JSON
{
  "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.namespace
  • match_pattern: 1–200 chars, valid regex (no nested quantifiers, no backreferences), applied with re.search
  • vendor_id: 1–128 chars · vendor_role ∈ in_house · supplier · integrator · model_provider · cloud · unknown
  • Max 200 rules; lowest priority is 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

HTTP
GET /v1/observ/orgs/{org}/workspaces/{ws}/fleet/fleets

Auth: API key or JWT · Role: viewer

Response 200 — not schema-modelled

JSON
{
  "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")

Fleet graph

HTTP
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

NameTypeRequiredDescription
orgstring✅Organization slug
wsstring✅Workspace slug
fleet_idstring✅Fleet identifier

Response 200 — not schema-modelled

JSON
{
  "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']:,}")

Fleet flags

HTTP
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

NameTypeRequiredDefaultDescription
statusstring➖activeactive — 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)

Pause / resume / clear a fleet

HTTP
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

ActionEffect
pauseStops fleet monitoring and flag evaluation. Spans still ingest.
resumeResumes monitoring from live state.
clearDiscards accumulated fleet state and starts a fresh topology.

pause does not stop your agents. Evigauge never controls your runtime — it pauses monitoring only. And clear is 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

Mint a WebSocket ticket

HTTP
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

JSON
{ "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

code
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 codeMeaning
1008Ticket 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", []))