Monitoring and observability
See what happened during a Run and why a workflow is waiting or failing.
Start with the Run
kubectl get runs -A
kubectl describe run example-run -n kaigents
kubectl get pods -n kaigentsCorrelate events
The tool plane emits correlated invocation, completion, and failure events; the Temporal adapter exposes queryable state for long-running work. Compare the current step, retry history, and any approval wait before restarting or intervening.
Service health
- Collect structured logs and metrics for the operator, engine, model endpoints, and Temporal adapter; confirm the endpoints actually exposed by your version before configuring a scraper.
- Alert on failed runs, repeated activity retries, model latency, and tool timeouts.
- Limit what prompts, tool results, and artifacts are retained in logs; protect access to observability data.
Useful service-level indicators
- Run completion and failure rate grouped by workload and release.
- Time from submission to first execution and end-to-end completion.
- Model request latency, timeouts, and context-window failures by endpoint.
- MCP tool success, error, timeout, and retry counts by tool and tenant without labeling raw user input.
- Age of Work Requests waiting for approval and time to recovery after worker interruption.
Diagnose in order
For a stuck Run, compare its observedGeneration, conditions, and phase against the Agent or Team reference. Next inspect operator pod events and runner logs, then the Temporal workflow query and model or MCP service logs. Correlate by Run or workflow identifier instead of copying sensitive prompt contents into dashboards. Measure baseline failure rates before setting alert thresholds; metrics named here are recommended signals, not a claim that all are exposed out of the box.