Observability Runbook
Scope
Jarvis observability covers:
- persistent telemetry snapshots in
OBSERVABILITY_DB_PATH - runtime event stream in
OBSERVABILITY_EVENT_LOG_PATH - restart and uptime state in
OBSERVABILITY_STATE_PATH - Prometheus/OpenMetrics export at
GET /metrics(operator server) - SSE event feed at
GET /events(operator server)
Key Signals
- Latency percentiles: STT / LLM-first-sentence / TTS-first-audio (
p50,p95,p99) - Tool rolling rates: per-tool
success_rate/error_ratewindows - Intent success signals:
answer_quality_success_rate,completion_success_rate,correction_frequency - Unified scorecard:
jarvis_scorecardandsystem_status.scorecard(latency, reliability, initiative, trust) - Failure burst alerts: generated when recent tool errors exceed
OBSERVABILITY_FAILURE_BURST_THRESHOLD - Budget alerts:
latency_budget_exceededwhen LLM first-sentence p95 breachesOBSERVABILITY_LATENCY_BUDGET_P95_MStokens_budget_exceededwhen estimated hourly tokens breachOBSERVABILITY_TOKENS_BUDGET_PER_HOURcost_budget_exceededwhen estimated hourly spend breachesOBSERVABILITY_COST_BUDGET_USD_PER_HOUR
- Router canary disagreement analytics:
observability.router_canary_analyticsfor canary coverage and shadow disagreement rate - Process lifecycle:
runtime_start,runtime_stop,restart_count,uptime_sec
Triage Flow
- Check current health snapshot:
- query
system_status - inspect
observability.alerts
- query
- Inspect metrics endpoint:
curl http://127.0.0.1:8765/metrics- verify spikes in p95/p99 latency lines
- Inspect event stream and timeline:
curl http://127.0.0.1:8765/events- filter for
watchdog_reset,stt_fallback,tts_fallback_text_only,failure_burst, budget alert types
- Correlate with tool history:
- query
tool_summaryandtool_summary_text
- query
- Inspect canary disagreement panel:
- open Operator Console and inspect
Router Canary - review
recent_disagreementsto identify mismatched primary vs shadow route decisions
- open Operator Console and inspect
Tuning
- Increase snapshot density:
- lower
OBSERVABILITY_SNAPSHOT_INTERVAL_SEC
- lower
- Reduce noisy alerts:
- raise
OBSERVABILITY_FAILURE_BURST_THRESHOLD - increase
OBSERVABILITY_ALERT_COOLDOWN_SEC
- raise
- Tune budget sensitivity:
- adjust
OBSERVABILITY_LATENCY_BUDGET_P95_MS - adjust
OBSERVABILITY_TOKENS_BUDGET_PER_HOURandOBSERVABILITY_COST_BUDGET_USD_PER_HOUR - adjust
OBSERVABILITY_BUDGET_WINDOW_SECfor shorter/longer smoothing windows
- adjust
- Tighten degraded-mode detection:
- combine lower burst threshold with watchdog timeouts (
WATCHDOG_*)
- combine lower burst threshold with watchdog timeouts (
SLO Suggestions
- STT p95 < 1200ms
- LLM first sentence p95 < 1800ms
- TTS first audio p95 < 700ms
- Tool error rate < 5% for critical integrations
Backup / Retention
- Observability DB and event log are local files; include them in host backup policy.
- If disk pressure increases, rotate/trim event log and archive DB snapshots out of band.
Related Runbooks
campaign-execution-runbook.mdintegrations-degradation-runbook.mdautonomy-checkpoint-runbook.md