cURL
curl --request GET \ --url https://api.example.com/api/v1/observer/system
{ "status": "ok", "result": { "name": "queue", "is_healthy": true, "has_errors": false, "status": "Queue\tPending\tIn Progress\tProcessed\tErrors\tTotal\nEmbedding\t0\t0\t10\t0\t10\nSemantic\t0\t0\t10\t0\t10\nTOTAL\t0\t0\t20\t0\t20" }, "time": 0.03 }
X-API-Key
curl -X GET http://localhost:1933/api/v1/observer/queue \ -H "X-API-Key: your-key"
curl -X GET http://localhost:1933/api/v1/observer/vikingdb \ -H "X-API-Key: your-key"
curl -X GET http://localhost:1933/api/v1/observer/vlm \ -H "X-API-Key: your-key"
curl -X GET http://localhost:1933/api/v1/observer/system \ -H "X-API-Key: your-key"
ok
error
Show Component Object
queue
vikingdb
vlm
Show System Object
curl -X POST http://localhost:1933/api/v1/system/wait \ -H "Content-Type: application/json" \ -H "X-API-Key: your-key" \ -d '{"timeout": 60.0}'
# Add resources client.add_resource("./docs/") # Wait for all processing to complete status = client.wait_processed(timeout=60.0) print(f"Pending: {status['pending']}") print(f"Processed: {status['processed']}") print(f"Errors: {status['errors']}")
{ "status": "ok", "result": { "pending": 0, "in_progress": 0, "processed": 20, "errors": 0 }, "time": 0.1 }
curl -X GET http://localhost:1933/api/v1/debug/health \ -H "X-API-Key: your-key"
if client.observer.is_healthy(): print("System OK") else: print(client.observer.system)
{ "status": "ok", "result": { "healthy": true }, "time": 0.02 }
Use Readiness Probes in Kubernetes
/ready
readinessProbe: httpGet: path: /ready port: 1933 initialDelaySeconds: 10 periodSeconds: 5
Monitor Queue Depths
pending
in_progress
Track VLM Token Usage