Skip to main content

Documentation Index

Fetch the complete documentation index at: https://dorguai.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The platform exposes a JSON REST API for querying ClusterPersona data. The frontend uses this API, and you can also call it directly.

Endpoints

List clusters

GET /api/clusters
Returns all ClusterPersona resources. Response:
{
  "clusters": [
    {
      "name": "prod-cluster",
      "spec": {
        "name": "prod-cluster",
        "description": "Production EKS cluster",
        "environment": "production"
      },
      "status": {
        "phase": "Ready",
        "kubernetesVersion": "v1.29.0",
        "platform": "EKS",
        "applicationCount": 12,
        "lastDiscovery": "2026-03-23T10:30:00Z",
        "nodes": [...],
        "addons": [...],
        "resourceSummary": {...}
      }
    }
  ]
}

Get cluster

GET /api/clusters/{name}
Returns a single ClusterPersona by name. Response: Same structure as a single item from the list endpoint (unwrapped, not inside clusters array). Error (404):
{
  "error": "cluster not found"
}

Health check

GET /health
Returns 200 OK when the server is running.

Response schema

ClusterPersona

FieldTypeDescription
namestringResource name
spec.namestringCluster identifier
spec.descriptionstringHuman-readable description
spec.environmentstringEnvironment tag (production, staging, dev)
status.phasestringCluster phase (Ready, Pending, Degraded, Failed)
status.kubernetesVersionstringKubernetes version
status.platformstringInfrastructure platform (EKS, GKE, AKS, Kind, etc.)
status.applicationCountintNumber of ApplicationPersonas
status.lastDiscoverystringISO 8601 timestamp of last discovery
status.nodesarrayList of NodeInfo objects
status.addonsarrayList of AddonInfo objects
status.resourceSummaryobjectAggregated resource information

NodeInfo

FieldTypeDescription
namestringNode name
rolestringNode role (master, worker)
readybooleanWhether the node is Ready
kubeletVersionstringKubelet version
containerRuntimestringContainer runtime and version

AddonInfo

FieldTypeDescription
namestringAdd-on name
namespacestringNamespace where the add-on runs
healthybooleanWhether the add-on pod is healthy
versionstringVersion from container image tag

ResourceSummary

FieldTypeDescription
totalCPUstringTotal CPU capacity across nodes
totalMemorystringTotal memory capacity across nodes
allocatableCPUstringAllocatable CPU across nodes
allocatableMemorystringAllocatable memory across nodes
runningPodsintCurrent running pod count

Examples

# List all clusters
curl http://localhost:8080/api/clusters

# Get a specific cluster
curl http://localhost:8080/api/clusters/prod-cluster

# Pretty-print with jq
curl -s http://localhost:8080/api/clusters | jq '.clusters[].name'

WebSocket API

Real-time event protocol

Dashboard

How the frontend uses this API